2015-02-12 21:22:32 -07:00
|
|
|
import Ember from 'ember';
|
2014-03-22 12:08:15 +00:00
|
|
|
var NotificationsComponent = Ember.Component.extend({
|
|
|
|
tagName: 'aside',
|
2015-05-21 11:03:24 -06:00
|
|
|
classNames: 'gh-notifications',
|
2014-07-09 04:17:30 +00:00
|
|
|
|
|
|
|
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;
|
2014-07-09 04:17:30 +00:00
|
|
|
|
2015-05-21 11:03:24 -06:00
|
|
|
return displayStatus === 'passive';
|
2015-05-22 09:38:46 +01:00
|
|
|
})
|
2014-03-22 12:08:15 +00:00
|
|
|
});
|
|
|
|
|
2014-07-17 17:28:53 +00:00
|
|
|
export default NotificationsComponent;
|