replace gets with arguments
This commit is contained in:
parent
3ef82bb32c
commit
8f436bf736
|
@ -5,10 +5,10 @@ export default Ember.Component.extend({
|
||||||
classNameBindings: ['topicStatusIcon'],
|
classNameBindings: ['topicStatusIcon'],
|
||||||
|
|
||||||
@computed('topic.pinned', 'topic.closed', 'topic.archived')
|
@computed('topic.pinned', 'topic.closed', 'topic.archived')
|
||||||
topicStatusIcon() {
|
topicStatusIcon(pinned, closed, archived) {
|
||||||
if(this.get('topic.pinned')) { return 'topic-pinned'; }
|
if(pinned) { return 'topic-pinned'; }
|
||||||
if(this.get('topic.closed')) { return 'topic-closed'; }
|
if(closed) { return 'topic-closed'; }
|
||||||
if(this.get('topic.archived')) { return 'topic-archived'; }
|
if(archived) { return 'topic-archived'; }
|
||||||
return 'topic-open';
|
return 'topic-open';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue