2015-02-13 07:22:32 +03:00
|
|
|
import Ember from 'ember';
|
2015-05-26 05:10:50 +03:00
|
|
|
|
|
|
|
export default Ember.Component.extend({
|
2014-03-22 16:08:15 +04:00
|
|
|
tagName: 'aside',
|
2015-05-21 20:03:24 +03:00
|
|
|
classNames: 'gh-notifications',
|
2014-07-09 08:17:30 +04:00
|
|
|
|
2015-05-26 05:10:50 +03:00
|
|
|
notifications: Ember.inject.service(),
|
|
|
|
|
|
|
|
messages: Ember.computed.filter('notifications.content', function (notification) {
|
2015-05-21 20:03:24 +03:00
|
|
|
var displayStatus = (typeof notification.toJSON === 'function') ?
|
|
|
|
notification.get('status') : notification.status;
|
2014-07-09 08:17:30 +04:00
|
|
|
|
2015-05-21 20:03:24 +03:00
|
|
|
return displayStatus === 'passive';
|
2015-05-22 11:38:46 +03:00
|
|
|
})
|
2014-03-22 16:08:15 +04:00
|
|
|
});
|