From 424f54838921427ab00f7380ff8c117208d85a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 23 Mar 2021 15:37:51 +0300 Subject: [PATCH] fix csb --- src/views/datatable/DataTableCrudDemo.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/datatable/DataTableCrudDemo.vue b/src/views/datatable/DataTableCrudDemo.vue index fad827073..effd48047 100755 --- a/src/views/datatable/DataTableCrudDemo.vue +++ b/src/views/datatable/DataTableCrudDemo.vue @@ -248,7 +248,7 @@ export default { - +
@@ -460,12 +460,12 @@ export default { } .product-image { - width: 100px; + width: 50px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); } .p-dialog .product-image { - width: 150px; + width: 50px; margin: 0 auto 2rem auto; display: block; } @@ -544,7 +544,7 @@ export default {
- +
@@ -681,8 +681,8 @@ export default { if (product.value.name.trim()) { if (product.value.id) { - product.value.inventoryStatus = this.product.inventoryStatus.value ? this.product.inventoryStatus.value: this.product.inventoryStatus; - products.value[this.findIndexById(this.product.id)] = this.product; + product.value.inventoryStatus = product.value.inventoryStatus.value ? product.value.inventoryStatus.value : product.value.inventoryStatus; + products.value[findIndexById(product.value.id)] = product.value; toast.add({severity:'success', summary: 'Successful', detail: 'Product Updated', life: 3000}); } else { @@ -698,8 +698,8 @@ export default { product.value = {}; } }; - const editProduct = (product) => { - product.value = {...product.value}; + const editProduct = (prod) => { + product.value = {...prod}; productDialog.value = true; }; const confirmDeleteProduct = (prod) => { @@ -759,12 +759,12 @@ export default { } .product-image { - width: 100px; + width: 50px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); } .p-dialog .product-image { - width: 150px; + width: 50px; margin: 0 auto 2rem auto; display: block; }