discourse/app/assets/javascripts/admin/addon/templates
David Taylor 5a99243629
DEV: Introduce declarative hide-application-footer helper (#23088)
Previously, we had a `showFooter` boolean on the application controller which would be set true/false in various routes by different routes/controllers. A global `routeWillChange` hook would set it `false` before every route transition, and the destination route/controller would have to set it `true` for the footer to show correctly.

This commit replaces that with a new 'declarative' system. Instead of having to set the value true/false manually, UIs which need the footer to be hidden can simply include the `{{hide-application-footer}}` helper in their template when needed. The helper/service will automatically keep track of all the current invocations of that helper, and only show the footer when there are 0 invocations.

This significantly simplifies things, and removes the need for many observers and controller injections, both of which are considered 'code smells' in modern Ember applications.
2023-08-17 12:47:08 +01:00
..
admin-badges REFACTOR: Use pluralized string for js.badges.awarded 2023-07-31 13:28:42 +02:00
logs DEV: Update admin controllers to native class syntax (#20674) 2023-03-15 09:42:12 +00:00
modal DEV: Convert penalize-user modal to component-based API (#22960) 2023-08-14 13:02:54 -05:00
admin-badges.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
admin.hbs DEV: Introduce declarative hide-application-footer helper (#23088) 2023-08-17 12:47:08 +01:00
api-keys-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
api-keys-new.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
api-keys-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
api.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups-logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-colors-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-colors-show.hbs DEV: Correct hbs prettier violations 2023-02-02 13:03:11 +00:00
customize-colors.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-style-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-style.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-form-templates-edit.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-form-templates-index.hbs DEV: Show active categories in form templates customize table (#20498) 2023-03-01 12:37:14 -08:00
customize-form-templates-new.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-robots-txt.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-themes-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-themes-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-themes-show.hbs FEATURE: JSON editor for theme settings (#21647) 2023-07-27 13:48:59 -04:00
customize-themes.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
dashboard_general.hbs DEV: Remove use of PluginOutlet @tagName argument in core 2023-01-31 12:15:37 +00:00
dashboard_moderation.hbs DEV: Rename all uses of PluginOutlet @args in core 2023-01-31 13:51:25 +00:00
dashboard_reports.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
dashboard_security.hbs DEV: Remove use of PluginOutlet @tagName argument in core 2023-01-31 12:15:37 +00:00
dashboard.hbs DEV: Remove use of PluginOutlet @tagName argument in core 2023-01-31 12:15:37 +00:00
email-advanced-test.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-bounced.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-preview-digest.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-received.hbs DEV: Add extra whitespace to tidy up prettified templates 2022-12-28 13:11:12 +00:00
email-rejected.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-sent.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-skipped.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
embedding.hbs FEATURE: Update topic/comment embedding parameters (#20181) 2023-02-28 14:31:59 +02:00
emojis.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
permalinks.hbs DEV: Update admin controllers to native class syntax (#20674) 2023-03-15 09:42:12 +00:00
plugins-index.hbs UX: Introduce toggle-switch UI for plugins (#22910) 2023-08-03 15:19:33 +01:00
plugins.hbs UX: move vertical admin plugin nav to horizontal overflow nav (#20319) 2023-02-17 10:21:30 -05:00
reports-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
search-logs-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
search-logs-term.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
site-settings-category.hbs FEATURE: Fuzzy search in site settings and raise limit to 100 matches (#21572) 2023-05-16 18:23:05 +10:00
site-settings.hbs FIX: Toggling overridden settings broke in #21572 (#22831) 2023-07-27 19:41:42 +02:00
site-text-edit.hbs DEV: Add endpoint for dismissing outdated translations (#22509) 2023-07-19 23:06:13 +08:00
site-text-index.hbs FEATURE: Warn about outdated translation overrides in admin dashboard (#22384) 2023-07-10 10:06:40 +08:00
site-text.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
user-badges.hbs FIX: Badge granting recursion error (#20750) 2023-03-20 21:07:21 +00:00
user-fields.hbs DEV: Fix array-related linting issues in templates (#22935) 2023-08-02 19:43:37 +02:00
user-index.hbs FEATURE: Count only approved flagged posts in user pages (#22799) 2023-07-31 13:33:10 +08:00
user-tl3-requirements.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
user.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
users-list-show.hbs FIX: update LoadMore selector for user tables (#20676) 2023-03-14 11:10:51 -04:00
users-list.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
watched-words-action.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
watched-words.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
web-hooks-edit.hbs DEV: Rename all uses of PluginOutlet @args in core 2023-01-31 13:51:25 +00:00
web-hooks-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
web-hooks-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
web-hooks.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00