mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
a47980149f
GH-ISSUE 2373
21 lines
593 B
JavaScript
21 lines
593 B
JavaScript
var NotificationComponent = Ember.Component.extend({
|
|
classNames: ['js-bb-notification'],
|
|
|
|
didInsertElement: function () {
|
|
var self = this;
|
|
|
|
self.$().on('animationend webkitAnimationEnd oanimationend MSAnimationEnd', function (event) {
|
|
/* jshint unused: false */
|
|
self.notifications.removeObject(self.get('message'));
|
|
});
|
|
},
|
|
|
|
actions: {
|
|
closeNotification: function () {
|
|
var self = this;
|
|
self.notifications.removeObject(self.get('message'));
|
|
}
|
|
}
|
|
});
|
|
|
|
export default NotificationComponent; |