discourse/app/assets/javascripts
Sam 0df7743d78
FIX: tag dropdown not working with default_list_filter (#20608)
If you set a category to `default_list_filter` none. Information
was not passed to the tag route and routing was incorrect.

This patch fails, cause on reload route does not point to the right place.


```
-- a/app/assets/javascripts/discourse/app/routes/tag-show.js
+++ b/app/assets/javascripts/discourse/app/routes/tag-show.js
@@ -89,6 +89,8 @@ export default DiscourseRoute.extend(FilterModeMixin, {
       filter = `tag/${tagId}/l/${topicFilter}`;
     }
     const list = await findTopicList(
       this.store,
       this.topicTrackingState,
@@ -123,7 +125,7 @@ export default DiscourseRoute.extend(FilterModeMixin, {
   },

   setupController(controller, model) {
-    const noSubcategories =
+    this.noSubcategories =
       this.noSubcategories === undefined
         ? model.category?.default_list_filter === NONE
         : this.noSubcategories;
@@ -133,7 +135,7 @@ export default DiscourseRoute.extend(FilterModeMixin, {
       ...model,
       period: model.list.for_period,
       navMode: this.navMode,
-      noSubcategories,
+      noSubcategories: this.noSubcategories,
       loading: false,
     });
 ```

Long term we don't want to hide this logic from the routing (even in
the category case) it just cause unneeded confusion and fragility.
2023-03-10 11:37:55 +11:00
..
admin Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
bootstrap-json DEV: Change enable_sidebar query param to navigation_menu (#20368) 2023-02-21 09:59:56 +08:00
confirm-new-email
dialog-holder Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
discourse FIX: tag dropdown not working with default_list_filter (#20608) 2023-03-10 11:37:55 +11:00
discourse-common Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
discourse-ensure-deprecation-order DEV: Silence 3.x deprecations 2022-07-19 10:00:59 +01:00
discourse-hbr Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
discourse-plugins Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
discourse-widget-hbs Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
docs
ember-addons
ember-cli-progress-ci DEV: Add progress output in CI during ember-cli build (#17977) 2022-08-17 22:39:52 +01:00
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
pretty-text Revert "DEV: Add crossOrigin to video tag (#20617)" (#20624) 2023-03-09 16:20:35 -07:00
select-kit DEV: Unsilence and resolve setting-on-hash deprecation (#20611) 2023-03-09 13:44:31 +00:00
truth-helpers Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
wizard Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00
.licensee.json DEV: Have licensee check xmldom license (#18840) 2022-11-02 11:51:11 -04:00
.npmrc
discourse-js-processor.js DEV: Update ember-cli-htmlbars to 6.2.0 (#20467) 2023-02-27 18:43:28 +01:00
handlebars-shim.js
package.json DEV: Make dialog-holder a monorepo package (#19051) 2022-11-16 16:43:45 +01:00
polyfills.js Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
service-worker.js.erb FEATURE: Enable service worker for Apple devices (#19643) 2023-01-30 13:23:19 -03:00
yarn.lock Build(deps): Bump webpack in /app/assets/javascripts (#20598) 2023-03-08 23:24:51 +01:00