FIX: show create new topic link in advanced search mode
This commit is contained in:
parent
afdc559f4f
commit
b43ac801d1
|
@ -167,9 +167,9 @@ export default Ember.Controller.extend({
|
||||||
return this.currentUser && this.currentUser.staff && hasResults;
|
return this.currentUser && this.currentUser.staff && hasResults;
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed('expanded', 'model.grouped_search_result.can_create_topic')
|
@computed('model.grouped_search_result.can_create_topic')
|
||||||
canCreateTopic(expanded, userCanCreateTopic) {
|
canCreateTopic(userCanCreateTopic) {
|
||||||
return this.currentUser && userCanCreateTopic && !expanded;
|
return this.currentUser && userCanCreateTopic;
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed('expanded')
|
@computed('expanded')
|
||||||
|
|
Loading…
Reference in New Issue