DEV: Remove deprecated DisableSidebar mixin (#26425)
This commit is contained in:
parent
33de5abb6e
commit
ba7215b3c2
|
@ -1,21 +0,0 @@
|
|||
import Mixin from "@ember/object/mixin";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
|
||||
export default Mixin.create({
|
||||
activate() {
|
||||
deprecated(
|
||||
"The DisableSidebar mixin is deprecated. Instead, please add the {{hide-application-sidebar}} helper to an Ember template.",
|
||||
{ id: "discourse.hide-application-sidebar" }
|
||||
);
|
||||
|
||||
this.controllerFor("application").setProperties({
|
||||
sidebarDisabledRouteOverride: true,
|
||||
});
|
||||
},
|
||||
|
||||
deactivate() {
|
||||
this.controllerFor("application").setProperties({
|
||||
sidebarDisabledRouteOverride: false,
|
||||
});
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue