discourse/app/assets/javascripts/discourse-common/addon
David Taylor 3960ba6588
FIX: Ensure admin templates are not used for non-admin controllers (#17667)
Previously, if a non-admin controller did not have a template defined, then the resolver would return an admin template with the same name. This is not the desired behavior, and regressed in fc36ac6cde. However, we *do* want this behavior for components defined in the admin bundle (because admin components are not namespaced).

This was noticed because the non-admin `badges` route was using the `admin/badges` template

This commit fixes the behavior, and adds a tests for these cases.
2022-07-26 17:03:49 +01:00
..
config DEV: add deprecation notice to isLegacyEmber (#17186) 2022-06-21 14:08:12 -05:00
helpers DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
lib FIX: isExistingIconId() regressed in #17553 (#17570) 2022-07-19 15:32:26 +02:00
utils DEV: Extensively use includes() (#17541) 2022-07-17 20:48:36 +02:00
.gitkeep
resolver.js FIX: Ensure admin templates are not used for non-admin controllers (#17667) 2022-07-26 17:03:49 +01:00