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 7560 additions and 5650 deletions

View File

@ -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-quantity',
templateUrl: './quantity.component.html',
styleUrls: ['./quantity.component.css']
styleUrls: ['./quantity.component.css'],
})
export class QuantityComponent implements OnInit {
form: FormGroup;
@ -20,18 +20,18 @@ export class QuantityComponent implements OnInit {
ngOnInit() {
this.form.setValue({
quantity: this.data
quantity: this.data,
});
}
createForm() {
this.form = this.fb.group({
quantity: ''
quantity: '',
});
}
accept(): void {
const quantity = this.form.value.quantity;
const { quantity } = this.form.value;
this.dialogRef.close(quantity);
}
}