Ghost/ghost/admin/app/components/gh-notifications.js

16 lines
450 B
JavaScript
Raw Normal View History

2015-02-13 07:22:32 +03:00
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'aside',
2015-05-21 20:03:24 +03:00
classNames: 'gh-notifications',
notifications: Ember.inject.service(),
messages: Ember.computed.filter('notifications.content', function (notification) {
2015-05-21 20:03:24 +03:00
var displayStatus = (typeof notification.toJSON === 'function') ?
notification.get('status') : notification.status;
2015-05-21 20:03:24 +03:00
return displayStatus === 'passive';
})
});