added suppr and edit modal for supplier price
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<div class="flex items-center justify-center space-x-2">
|
||||
<nz-icon nzType="edit" nzTheme="outline"
|
||||
class="cursor-pointer text-gray-600 hover:text-gray-900"
|
||||
(click)="openEditProductModal(product)"></nz-icon>
|
||||
(click)="openEditProductModal(product, supplier.id)"></nz-icon>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-600 hover:text-red-800"
|
||||
(click)="deleteProduct(product.productId, product.supplierId)"></nz-icon>
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
<div class="hidden">
|
||||
<app-modal-nav #productModal nameIcon="edit" [name]="'Modifier les prix des fournisseurs'"
|
||||
(ok)="onModalProductOk(selectedProduct?.id, selectedSupplier?.id, priceForm, productModal)"
|
||||
(ok)="onModalProductOk(selectedProduct?.productId, selectedProductSupplierId, priceForm, productModal)"
|
||||
(cancel)="onModalCancel(productModal)">
|
||||
<app-price-form #priceForm [price]="selectedProduct"></app-price-form>
|
||||
</app-modal-nav>
|
||||
|
||||
Reference in New Issue
Block a user