Blacked and isorted the python files
Prettied and eslinted the typescript/html files
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
|
||||
@Component({
|
||||
selector: 'app-pax',
|
||||
templateUrl: './pax.component.html',
|
||||
styleUrls: ['./pax.component.css']
|
||||
styleUrls: ['./pax.component.css'],
|
||||
})
|
||||
export class PaxComponent implements OnInit {
|
||||
form: FormGroup;
|
||||
@ -20,18 +20,18 @@ export class PaxComponent implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.form.setValue({
|
||||
pax: this.data
|
||||
pax: this.data,
|
||||
});
|
||||
}
|
||||
|
||||
createForm() {
|
||||
this.form = this.fb.group({
|
||||
pax: ''
|
||||
pax: '',
|
||||
});
|
||||
}
|
||||
|
||||
accept(): void {
|
||||
const pax = this.form.value.pax;
|
||||
const { pax } = this.form.value;
|
||||
this.dialogRef.close(pax);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user