Notification Added For All Items
This commit is contained in:
parent
fbe5a9cc9b
commit
d74e6e9cbc
|
|
@ -194,15 +194,15 @@
|
||||||
if (productId == "all") {
|
if (productId == "all") {
|
||||||
updatedItems = [];
|
updatedItems = [];
|
||||||
this.$set(this, 'products', []);
|
this.$set(this, 'products', []);
|
||||||
|
window.flashMessages = [{'type': 'alert-success', 'message': '{{ __('velocity::app.customer.compare.removed-all') }}' }];
|
||||||
} else {
|
} else {
|
||||||
updatedItems = existingItems.filter(item => item != productId);
|
updatedItems = existingItems.filter(item => item != productId);
|
||||||
this.$set(this, 'products', this.products.filter(product => product.id != productId));
|
this.$set(this, 'products', this.products.filter(product => product.id != productId));
|
||||||
|
window.flashMessages = [{'type': 'alert-success', 'message': '{{ __('velocity::app.customer.compare.removed') }}' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setStorageValue('compared_product', updatedItems);
|
this.setStorageValue('compared_product', updatedItems);
|
||||||
|
|
||||||
window.flashMessages = [{'type': 'alert-success', 'message': '{{ __('velocity::app.customer.compare.removed') }}' }];
|
|
||||||
|
|
||||||
this.$root.addFlashMessages();
|
this.$root.addFlashMessages();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue