UX: Move solved filter behind plugin setting

On sites where solved is used but solved topics are not included in the knowledge explorer, having the filter caused issues.
This commit is contained in:
Justin DiRose 2020-07-09 10:22:41 -05:00
parent 757047d923
commit 7f44dfc84a
No known key found for this signature in database
GPG Key ID: 4B811FB264021800
3 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export default Ember.Controller.extend({
@discourseComputed
canFilterSolved() {
return this.siteSettings.solved_enabled;
return this.siteSettings.solved_enabled && this.siteSettings.knowledge_explorer_add_solved_filter;
},
@discourseComputed("filterTags")

View File

@ -3,3 +3,4 @@ en:
knowledge_explorer_enabled: "Enable the Knowledge Explorer Plugin"
knowledge_explorer_categories: "A list of category slugs to include in the knowledge explorer"
knowledge_explorer_tags: "A list of tags to include in the knowledge explorer"
knowledge_explorer_add_solved_filter: "Adds a filter for solved topics -- requires Discourse Solved to be installed and enabled"

View File

@ -10,3 +10,6 @@ plugins:
type: tag_list
default: ""
client: true
knowledge_explorer_add_solved_filter:
default: false
client: true