DEV: Remove code that is no longer used (#17684)

This commit is contained in:
Alan Guo Xiang Tan 2022-07-27 16:42:16 +08:00 committed by GitHub
parent dcf84fce7b
commit c787254427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

View File

@ -51,10 +51,6 @@ const ApplicationRoute = DiscourseRoute.extend(OpenComposer, {
mobile.toggleMobileView(); mobile.toggleMobileView();
}, },
toggleSidebar() {
this.controllerFor("application").send("toggleSidebar");
},
logout: unlessReadOnly( logout: unlessReadOnly(
"_handleLogout", "_handleLogout",
I18n.t("read_only_mode.logout_disabled") I18n.t("read_only_mode.logout_disabled")

View File

@ -1,6 +1,6 @@
<DSection @pageClass="has-sidebar" @class="sidebar-container" @scrollTop={{false}}> <DSection @pageClass="has-sidebar" @class="sidebar-container" @scrollTop={{false}}>
<div class="sidebar-scroll-wrap"> <div class="sidebar-scroll-wrap">
<Sidebar::Sections @collapsableSections={{true}}/> <Sidebar::Sections @collapsableSections={{true}}/>
<Sidebar::Footer @toggleSidebar={{@toggleSidebar}} @tagName=""/> <Sidebar::Footer @tagName=""/>
</div> </div>
</DSection> </DSection>

View File

@ -4,7 +4,7 @@
<div class="panel-body-content"> <div class="panel-body-content">
<div class="sidebar-hamburger-dropdown"> <div class="sidebar-hamburger-dropdown">
<Sidebar::Sections @collapsableSections={{false}}/> <Sidebar::Sections @collapsableSections={{false}}/>
<Sidebar::Footer @toggleSidebar={{route-action "toggleSidebar"}} @tagName="" /> <Sidebar::Footer @tagName="" />
</div> </div>
</div> </div>
</div> </div>