mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
7ac6ebb920
issue #5409 - change persistent/passive notification status to alert/notification - replace showSuccess/Info/Warn/Error with showNotification/showAlert - fix and clean up notification/alert components
15 lines
370 B
JavaScript
15 lines
370 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
tagName: 'aside',
|
|
classNames: 'gh-alerts',
|
|
|
|
notifications: Ember.inject.service(),
|
|
|
|
messages: Ember.computed.alias('notifications.alerts'),
|
|
|
|
messageCountObserver: Ember.observer('messages.[]', function () {
|
|
this.sendAction('notify', this.get('messages').length);
|
|
})
|
|
});
|