discourse/app/assets/javascripts/admin/addon
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
..
adapters DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
components FIX: Display 'shown on X' user field flags (#23109) 2023-08-15 15:59:04 -05:00
controllers DEV: Convert `penalize-user` modal to component-based API (#22960) 2023-08-14 13:02:54 -05:00
helpers DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
lib DEV: Add support for uploads to form templates (#22232) 2023-06-28 12:49:05 -07:00
mixins DEV: Convert `site-setting-default-categories` modal to component-based API (#22968) 2023-08-10 10:31:34 +01:00
models DEV: Add endpoint for dismissing outdated translations (#22509) 2023-07-19 23:06:13 +08:00
routes DEV: Introduce declarative hide-application-footer helper (#23088) 2023-08-17 12:47:08 +01:00
services DEV: Convert `penalize-user` modal to component-based API (#22960) 2023-08-14 13:02:54 -05:00
templates DEV: Introduce declarative hide-application-footer helper (#23088) 2023-08-17 12:47:08 +01:00