fixed errors in supplier page

This commit is contained in:
2025-11-28 09:00:41 +01:00
parent 376f217456
commit b54ba70c11
8 changed files with 25 additions and 10 deletions

View File

@@ -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">

View File

@@ -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() {