1fb2b49a5b
no issue - in a very old iteration of the admin design we needed a data attribute containing the number of notifications in order to add extra spacing in the styles. This hasn't been necessary for a long time and there are easier ways to do it now than using observers.
13 lines
304 B
JavaScript
13 lines
304 B
JavaScript
import Component from '@ember/component';
|
|
import {alias} from '@ember/object/computed';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Component.extend({
|
|
tagName: 'aside',
|
|
classNames: 'gh-alerts',
|
|
|
|
notifications: service(),
|
|
|
|
messages: alias('notifications.alerts')
|
|
});
|