Fixed Crud demo
parent
e02f55ef5b
commit
17902bc44b
|
@ -321,7 +321,7 @@ export default {
|
||||||
|
|
||||||
if (this.product.name.trim()) {
|
if (this.product.name.trim()) {
|
||||||
if (this.product.id) {
|
if (this.product.id) {
|
||||||
this.$set(this.products, this.findIndexById(this.product.id), this.product);
|
this.products[this.findIndexById(this.product.id)] = this.product;
|
||||||
this.$toast.add({severity:'success', summary: 'Successful', detail: 'Product Updated', life: 3000});
|
this.$toast.add({severity:'success', summary: 'Successful', detail: 'Product Updated', life: 3000});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -431,7 +431,7 @@ export default {
|
||||||
|
|
||||||
if (this.product.name.trim()) {
|
if (this.product.name.trim()) {
|
||||||
if (this.product.id) {
|
if (this.product.id) {
|
||||||
this.$set(this.products, this.findIndexById(this.product.id), this.product);
|
this.products[this.findIndexById(this.product.id)] = this.product;
|
||||||
this.$toast.add({severity:'success', summary: 'Successful', detail: 'Product Updated', life: 3000});
|
this.$toast.add({severity:'success', summary: 'Successful', detail: 'Product Updated', life: 3000});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue