From 66581b6f57235955a3cb2355684efb45e643f2ef Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 22 Oct 2017 12:51:47 +0300 Subject: [PATCH] Confirm archiving a payment gateway --- resources/views/partials/bulk_form.blade.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/views/partials/bulk_form.blade.php b/resources/views/partials/bulk_form.blade.php index 66c0c2ebb29e..be3086b24f33 100644 --- a/resources/views/partials/bulk_form.blade.php +++ b/resources/views/partials/bulk_form.blade.php @@ -13,9 +13,16 @@ } } + @if (in_array($entityType, [ENTITY_ACCOUNT_GATEWAY])) + if (action == 'archive') { + if (!confirm('{!! trans("texts.are_you_sure") !!}')) { + return; + } + } + @endif + $('#bulk_public_id').val(id); $('#bulk_action').val(action); - $('form.bulk-form').submit(); }