Blacked and isorted the python files

Prettied and eslinted the typescript/html files
This commit is contained in:
2020-10-11 10:56:29 +05:30
parent b31db593c2
commit d677cfb1ea
505 changed files with 7559 additions and 5649 deletions
@@ -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);
}