From add4be2ed99e47631337bdaac32c27dfa4e1e5db Mon Sep 17 00:00:00 2001 From: Sanjay Date: Thu, 9 Jun 2022 11:12:25 +0530 Subject: [PATCH] Issue #6459-fixed-default-theme --- .../shop/customers/account/reviews/index.blade.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/reviews/index.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/reviews/index.blade.php index 64bcae14f..0102fd921 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/reviews/index.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/reviews/index.blade.php @@ -58,13 +58,13 @@
-
+ @method('delete') @csrf
- + {{ __('shop::app.checkout.cart.remove') }} @@ -119,5 +119,13 @@ } }); })(); + + function deleteReview(reviewId) { + if (! confirm('{{ __("shop::app.customer.account.review.delete.confirmation-message") }}')) { + return; + } + + $(`#deleteReviewForm${reviewId}`).submit(); + } @endpush