2015-02-12 21:22:32 -07:00
|
|
|
import Ember from 'ember';
|
2015-05-25 21:10:50 -05:00
|
|
|
|
|
|
|
export default Ember.Component.extend({
|
2014-03-22 12:08:15 +00:00
|
|
|
tagName: 'aside',
|
2015-05-21 11:03:24 -06:00
|
|
|
classNames: 'gh-notifications',
|
2014-07-09 04:17:30 +00:00
|
|
|
|
2015-05-25 21:10:50 -05:00
|
|
|
notifications: Ember.inject.service(),
|
|
|
|
|
|
|
|
messages: Ember.computed.filter('notifications.content', 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
|
|
|
});
|