mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
7fbd9f84e6
No Issue - signup, signin and setup tests - fixup other files for code styles
15 lines
451 B
JavaScript
15 lines
451 B
JavaScript
import Ember from 'ember';
|
|
var NotificationsComponent = Ember.Component.extend({
|
|
tagName: 'aside',
|
|
classNames: 'gh-notifications',
|
|
|
|
messages: Ember.computed.filter('notifications', function (notification) {
|
|
var displayStatus = (typeof notification.toJSON === 'function') ?
|
|
notification.get('status') : notification.status;
|
|
|
|
return displayStatus === 'passive';
|
|
})
|
|
});
|
|
|
|
export default NotificationsComponent;
|