FIX: 'all' filter never de-highlighting
This commit is contained in:
parent
3a0cd0b760
commit
193bf62dee
|
@ -7,12 +7,17 @@ export default Ember.Component.extend(StringBuffer, {
|
|||
rerenderTriggers: ['content.count', 'count'],
|
||||
noGlyph: Em.computed.empty('icon'),
|
||||
|
||||
isIndexStream: function() {
|
||||
return !this.get('content');
|
||||
}.property('content.count'),
|
||||
|
||||
active: function() {
|
||||
if (this.get('isIndexStream')) {
|
||||
return !this.get('userActionType');
|
||||
}
|
||||
var content = this.get('content');
|
||||
if (content) {
|
||||
return parseInt(this.get('userActionType'), 10) === parseInt(Em.get(content, 'action_type'), 10);
|
||||
} else {
|
||||
return this.get('indexStream');
|
||||
}
|
||||
}.property('userActionType', 'indexStream'),
|
||||
|
||||
|
|
Loading…
Reference in New Issue