mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
16 lines
405 B
JavaScript
16 lines
405 B
JavaScript
export default {
|
|
name: "show-footer",
|
|
|
|
initialize(container) {
|
|
const router = container.lookup("router:main");
|
|
const application = container.lookup("controller:application");
|
|
|
|
// only take care of hiding the footer here
|
|
// controllers MUST take care of displaying it
|
|
router.on("willTransition", () => {
|
|
application.set("showFooter", false);
|
|
return true;
|
|
});
|
|
}
|
|
};
|