Blacked and isorted the python files
Prettied and eslinted the typescript/html files
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { Component, ElementRef, Inject, ViewChild } from '@angular/core';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
|
||||
import { ReasonDatasource } from './reason-datasource';
|
||||
import { FormBuilder, FormGroup } from "@angular/forms";
|
||||
|
||||
@Component({
|
||||
selector: 'app-reason',
|
||||
templateUrl: './reason.component.html',
|
||||
styleUrls: ['./reason.component.css']
|
||||
styleUrls: ['./reason.component.css'],
|
||||
})
|
||||
export class ReasonComponent {
|
||||
@ViewChild('son', { static: true }) son: ElementRef;
|
||||
@@ -19,13 +20,13 @@ export class ReasonComponent {
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ReasonComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) private data:{ title: string, reasons: string[]},
|
||||
private fb: FormBuilder
|
||||
@Inject(MAT_DIALOG_DATA) private data: { title: string; reasons: string[] },
|
||||
private fb: FormBuilder,
|
||||
) {
|
||||
this.reasons = data.reasons || [];
|
||||
this.title = data.title;
|
||||
this.form = this.fb.group({
|
||||
son: ''
|
||||
son: '',
|
||||
});
|
||||
this.dataSource = new ReasonDatasource(this.reasons);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user