FIX: show create new topic link in advanced search mode

This commit is contained in:
Arpit Jalan 2018-02-15 17:23:34 +05:30
parent afdc559f4f
commit b43ac801d1
1 changed files with 3 additions and 3 deletions

View File

@ -167,9 +167,9 @@ export default Ember.Controller.extend({
return this.currentUser && this.currentUser.staff && hasResults;
},
@computed('expanded', 'model.grouped_search_result.can_create_topic')
canCreateTopic(expanded, userCanCreateTopic) {
return this.currentUser && userCanCreateTopic && !expanded;
@computed('model.grouped_search_result.can_create_topic')
canCreateTopic(userCanCreateTopic) {
return this.currentUser && userCanCreateTopic;
},
@computed('expanded')