deleted notifs components
This commit is contained in:
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -47,7 +47,8 @@
|
||||
class="cursor-pointer text-gray-600 hover:text-gray-900"
|
||||
(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"
|
||||
<nz-icon nzType="delete" nzTheme="outline"
|
||||
class="cursor-pointer text-red-600 hover:text-red-800"
|
||||
(click)="deleteProduct(product.productId, product.supplierId)"></nz-icon>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -96,12 +96,12 @@ export class SupplierTable implements OnInit {
|
||||
}
|
||||
|
||||
openEditModal(supplier: GetSupplierDto) {
|
||||
this.selectedSupplier = { ...supplier };
|
||||
this.selectedSupplier = {...supplier};
|
||||
this.supplierModal().showModal();
|
||||
}
|
||||
|
||||
openEditProductModal(product: GetPriceDto, supplierId: number) {
|
||||
this.selectedProduct = { ...product };
|
||||
this.selectedProduct = {...product};
|
||||
this.selectedProductSupplierId = supplierId;
|
||||
this.productModal().showModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user