From 0744e84604e7e056f59ee7f7725f009ecaeb4293 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Fri, 11 Jan 2019 01:07:23 +0530 Subject: [PATCH] UX: always scope the composer categories dropdown to current category --- .../javascripts/discourse/controllers/composer.js.es6 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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); } }