0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/components/gh-notifications.js

15 lines
451 B
JavaScript
Raw Normal View History

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