deleted notifs components
This commit is contained in:
@@ -8,15 +8,15 @@ import {NzNotificationService} from "ng-zorro-antd/notification";
|
||||
import {firstValueFrom} from "rxjs";
|
||||
|
||||
@Component({
|
||||
selector: 'app-supplier',
|
||||
selector: 'app-supplier',
|
||||
imports: [
|
||||
Search,
|
||||
SupplierForm,
|
||||
SupplierTable,
|
||||
ModalButton
|
||||
],
|
||||
templateUrl: './supplier.html',
|
||||
styleUrl: './supplier.css',
|
||||
templateUrl: './supplier.html',
|
||||
styleUrl: './supplier.css',
|
||||
})
|
||||
export class Supplier {
|
||||
modal = viewChild.required<ModalButton>('modalButton');
|
||||
@@ -41,8 +41,7 @@ export class Supplier {
|
||||
}
|
||||
|
||||
async addSupplier() {
|
||||
if (this.createSupplier().supplierForm.invalid)
|
||||
{
|
||||
if (this.createSupplier().supplierForm.invalid) {
|
||||
this.notificationService.error(
|
||||
'Erreur',
|
||||
'Erreur d\'écriture dans le formulaire'
|
||||
|
||||
Reference in New Issue
Block a user