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;
|
||||
},
|
||||
|
||||
@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')
|
||||
|
|
Loading…
Reference in New Issue