discourse/app/assets/javascripts/admin
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
..
addon DEV: Introduce declarative hide-application-footer helper (#23088) 2023-08-17 12:47:08 +01:00
app REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
config DEV: Update ember-cli to 5.0.0 (#22280) 2023-06-26 17:15:59 +02:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Update ember-cli to 4.12.0 (#21074) 2023-04-19 12:58:29 +02:00
index.js DEV: invert admin/wizard build logic (#22520) 2023-07-10 22:07:21 +01:00
jsconfig.json DEV: Add discourse/tests to jsconfig (#19031) 2022-11-15 11:33:56 +00:00
package.json Build(deps-dev): Bump @babel/core in /app/assets/javascripts (#23004) 2023-08-09 11:47:12 +02:00