This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/initializers/show-footer.js.es6
2019-03-20 14:43:25 +01:00

16 lines
406 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("routeWillChange", () => {
application.set("showFooter", false);
return true;
});
}
};