2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2020-05-13 16:23:41 -04:00
|
|
|
import I18n from "I18n";
|
2019-10-22 09:46:10 -04:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminRoute extends DiscourseRoute {
|
2015-08-07 12:06:55 -04:00
|
|
|
titleToken() {
|
|
|
|
return I18n.t("admin_title");
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
2015-08-07 12:06:55 -04:00
|
|
|
|
|
|
|
activate() {
|
|
|
|
this.controllerFor("application").setProperties({
|
|
|
|
showTop: false,
|
|
|
|
showFooter: false,
|
|
|
|
});
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
2015-08-07 12:06:55 -04:00
|
|
|
|
|
|
|
deactivate() {
|
|
|
|
this.controllerFor("application").set("showTop", true);
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|