mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
15 lines
452 B
JavaScript
15 lines
452 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;
|