From 4e112321d92b65852db358feb1e9098e023eb346 Mon Sep 17 00:00:00 2001 From: Nazar Klovanych Date: Wed, 19 Aug 2020 18:02:41 +0300 Subject: [PATCH] Correctly revert default view after mass image deletion --- .../view/adminhtml/web/js/grid/massaction/massactions.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/massaction/massactions.js b/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/massaction/massactions.js index 4f09854005f23..7799bc00f958c 100644 --- a/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/massaction/massactions.js +++ b/app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/massaction/massactions.js @@ -141,9 +141,7 @@ define([ if (response.status === 'canceled') { return; } - this.imageModel().selected({}); - this.massActionMode(false); - this.switchMode(); + $(window).trigger('terminateMassAction.MediaGallery'); }.bind(this)); } }.bind(this));