Skip to content

Commit

Permalink
ENGCOM-5278: [Ui] Calling the always action on opening and closing th…
Browse files Browse the repository at this point in the history
…e modal. #23234
  • Loading branch information
sidolov authored Jun 26, 2019
2 parents 4aeadb5 + 885f06e commit 397341a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/code/Magento/Ui/view/base/web/js/modal/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ define([
}]
},

/**
* Create widget.
*/
_create: function () {
this.options.actions.always();
this._super();
},

/**
* Close modal window.
*/
closeModal: function () {
this.options.actions.always();
this.element.bind('alertclosed', _.bind(this._remove, this));

return this._super();
Expand Down

0 comments on commit 397341a

Please sign in to comment.