Skip to content

Commit dd99a7f

Browse files
author
joweecaquicla
committed
magento/adobe-stock-integration#1802: The three dots context menu is not closed after unsuccessful licensing from Media Gallery - modified image.js
1 parent d4d757b commit dd99a7f

File tree

1 file changed

+8
-0
lines changed
  • app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/columns

1 file changed

+8
-0
lines changed

app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/columns/image.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ define([
270270
*/
271271
addMessage: function (code, message) {
272272
this.messages().add(code, message);
273+
this.closeContextMenu();
273274
this.messages().scheduleCleanup();
274275
},
275276

@@ -284,6 +285,13 @@ define([
284285
!this.massaction().massActionMode()) {
285286
this.deselectImage();
286287
}
288+
},
289+
290+
/**
291+
* Action to close the context menu in media gallery.
292+
*/
293+
closeContextMenu: function () {
294+
$('.media-gallery-wrap').click();
287295
}
288296
});
289297
});

0 commit comments

Comments
 (0)