Cleanup
This commit is contained in:
parent
3471499613
commit
e14f3c802b
|
@ -74,7 +74,7 @@ export default Ember.Controller.extend(BulkTopicSelection, {
|
|||
|
||||
showAdminControls: function() {
|
||||
return !this.get('secondaryTag') && this.get('canAdminTag') && !this.get('category');
|
||||
}.property('canAdminTag', 'category'),
|
||||
}.property('secondaryTag', 'canAdminTag', 'category'),
|
||||
|
||||
loadMoreTopics() {
|
||||
return this.get("list").loadMore();
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
{{fa-icon "angle-right"}}
|
||||
{{discourse-tag-bound tagRecord=tag style="simple"}}
|
||||
{{#if secondaryTag}}
|
||||
<span>&</span>
|
||||
<span>&</span>
|
||||
{{discourse-tag-bound tagRecord=secondaryTag style="simple"}}
|
||||
{{/if}}
|
||||
</h2>
|
||||
|
|
|
@ -462,8 +462,8 @@ class TopicQuery
|
|||
if @options[:tags] && @options[:tags].size > 0
|
||||
result = result.joins(:tags)
|
||||
|
||||
# ALL of the given tags:
|
||||
if @options[:match_all_tags]
|
||||
# ALL of the given tags:
|
||||
@options[:tags] = Tag.where(name: @options[:tags]).pluck(:id) unless @options[:tags][0].is_a?(Integer)
|
||||
@options[:tags].each_with_index do |tag, index|
|
||||
sql_alias = ['t', index].join
|
||||
|
|
Loading…
Reference in New Issue