From d74e6e9cbc19e2adefd0376e46e63c546b665213 Mon Sep 17 00:00:00 2001 From: Devansh Date: Wed, 5 Aug 2020 19:59:54 +0530 Subject: [PATCH] Notification Added For All Items --- .../Resources/views/guest/compare/compare-products.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Webkul/Shop/src/Resources/views/guest/compare/compare-products.blade.php b/packages/Webkul/Shop/src/Resources/views/guest/compare/compare-products.blade.php index 2287148fa..7579869a5 100644 --- a/packages/Webkul/Shop/src/Resources/views/guest/compare/compare-products.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/guest/compare/compare-products.blade.php @@ -194,15 +194,15 @@ if (productId == "all") { updatedItems = []; this.$set(this, 'products', []); + window.flashMessages = [{'type': 'alert-success', 'message': '{{ __('velocity::app.customer.compare.removed-all') }}' }]; } else { updatedItems = existingItems.filter(item => item != 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); - window.flashMessages = [{'type': 'alert-success', 'message': '{{ __('velocity::app.customer.compare.removed') }}' }]; - this.$root.addFlashMessages(); } },