Skip to content

A platform for community discussion. Free, open, simple.

UX: always scope the composer categories dropdown to current category

Vinoth Kannan0744e84604e7
diff --git a/app/assets/javascripts/discourse/controllers/composer.js.es6 b/app/assets/javascripts/discourse/controllers/composer.js.es6
index d61c7c91f36..565c6418145 100644
--- a/app/assets/javascripts/discourse/controllers/composer.js.es6
+++ b/app/assets/javascripts/discourse/controllers/composer.js.es6
@@ -754,15 +754,10 @@ export default Ember.Controller.extend({
scopedCategoryId: null
});
- // If we show the subcategory list, scope the categories drop down to
- // the category we opened the composer with.
+ // Scope the categories drop down to the category we opened the composer with.
if (opts.categoryId && opts.draftKey !== "reply_as_new_topic") {
const category = this.site.categories.findBy("id", opts.categoryId);
- if (
- category &&
- (category.get("show_subcategory_list") ||
- category.get("parentCategory.show_subcategory_list"))
- ) {
+ if (category) {
this.set("scopedCategoryId", opts.categoryId);
}
}