Skip to content

Commit a7cbe9e

Browse files
committed
Hide record on directory deletiion or file deletion
1 parent 322d817 commit a7cbe9e

File tree

1 file changed

+8
-2
lines changed
  • AdobeStockImageAdminUi/view/adminhtml/web/js/components/grid/column

1 file changed

+8
-2
lines changed

AdobeStockImageAdminUi/view/adminhtml/web/js/components/grid/column/image-preview.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,14 @@ define([
6161
*/
6262
initialize: function () {
6363
this._super().initView();
64-
$(window).on('fileDeleted.enhancedMediaGallery', this.reloadAdobeGrid.bind(this));
65-
$(window).on('folderDeleted.enhancedMediaGallery', this.reloadAdobeGrid.bind(this));
64+
$(window).on('fileDeleted.enhancedMediaGallery', function () {
65+
this.reloadAdobeGrid();
66+
this.hide();
67+
}.bind(this));
68+
$(window).on('folderDeleted.enhancedMediaGallery', function () {
69+
this.reloadAdobeGrid();
70+
this.hide();
71+
}.bind(this));
6672

6773
return this;
6874
},

0 commit comments

Comments
 (0)