DEV: Remove deprecated DisableSidebar mixin (#26425)

This commit is contained in:
Penar Musaraj 2024-06-20 12:00:48 -04:00 committed by GitHub
parent 33de5abb6e
commit ba7215b3c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 21 deletions

View File

@ -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,
});
},
});