UX: Hide sidebar on 2FA route (#18464)

Internal Ref: /t/75929
This commit is contained in:
Alan Guo Xiang Tan
2022-10-04 14:23:20 +08:00
committed by GitHub
parent 044dc85358
commit ba2c5c7948
4 changed files with 45 additions and 17 deletions

View File

@@ -8,14 +8,22 @@ export default Route.extend({
activate() {
document.body.classList.add("wizard");
this.controllerFor("application").setProperties({
showTop: false,
showFooter: false,
sidebarDisabledRouteOverride: true,
showSiteHeader: false,
});
},
deactivate() {
document.body.classList.remove("wizard");
this.controllerFor("application").set("showTop", true);
this.controllerFor("application").setProperties({
showTop: true,
sidebarDisabledRouteOverride: false,
showSiteHeader: true,
});
},
});