mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:54:31 +08:00
missing condition
This commit is contained in:
parent
e04d66aa2c
commit
0c403272e2
|
@ -88,7 +88,7 @@ export default Em.Controller.extend(Presence, {
|
|||
|
||||
actions: {
|
||||
moreOfType: function(type) {
|
||||
if (type === 'topic' && this.get('searchContext.type') !== 'topic') {
|
||||
if (type === 'topic' && (!this.get('searchContextEnabled') || this.get('searchContext.type') !== 'topic')) {
|
||||
var term = this.get('term');
|
||||
// TODO in topic and in category special handling
|
||||
Discourse.URL.routeTo("/search?q=" + encodeURIComponent(term));
|
||||
|
|
Loading…
Reference in New Issue
Block a user