replace gets with arguments

This commit is contained in:
Neil Lalonde 2017-03-23 12:42:37 -04:00
parent 3ef82bb32c
commit 8f436bf736
1 changed files with 4 additions and 4 deletions

View File

@ -5,10 +5,10 @@ export default Ember.Component.extend({
classNameBindings: ['topicStatusIcon'],
@computed('topic.pinned', 'topic.closed', 'topic.archived')
topicStatusIcon() {
if(this.get('topic.pinned')) { return 'topic-pinned'; }
if(this.get('topic.closed')) { return 'topic-closed'; }
if(this.get('topic.archived')) { return 'topic-archived'; }
topicStatusIcon(pinned, closed, archived) {
if(pinned) { return 'topic-pinned'; }
if(closed) { return 'topic-closed'; }
if(archived) { return 'topic-archived'; }
return 'topic-open';
}
});