fixed errors in supplier page
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
(ok)="onModalOk()"
|
||||
(cancel)="onModalCancel()">
|
||||
|
||||
<app-supplier-form #supplierForm [supplier]=""></app-supplier-form>
|
||||
<app-supplier-form #supplierForm></app-supplier-form>
|
||||
</app-modal-button>
|
||||
|
||||
<div class="ml-95 w-150">
|
||||
|
||||
@@ -21,7 +21,7 @@ import {firstValueFrom} from "rxjs";
|
||||
export class Supplier {
|
||||
modal = viewChild.required<ModalButton>('modalButton');
|
||||
createSupplier = viewChild.required<SupplierForm>('supplierForm');
|
||||
suppliersTable = viewChild.required<SupplierTable>('suppliersTable');
|
||||
supplierTable = viewChild.required<SupplierTable>('supplierTable');
|
||||
private usersService = inject(SuppliersService);
|
||||
private notificationService = inject(NzNotificationService)
|
||||
|
||||
@@ -29,7 +29,7 @@ export class Supplier {
|
||||
await this.addSupplier()
|
||||
this.createSupplier().supplierForm.reset();
|
||||
this.modal().isVisible = false;
|
||||
await this.suppliersTable().fetchSuppliers()
|
||||
await this.supplierTable().fetchSuppliers()
|
||||
}
|
||||
|
||||
onModalCancel() {
|
||||
|
||||
Reference in New Issue
Block a user