diff --git a/app/assets/javascripts/discourse/app/components/sidebar/footer.gjs b/app/assets/javascripts/discourse/app/components/sidebar/footer.gjs index 58ddde88fc1..83fc442eba8 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/footer.gjs +++ b/app/assets/javascripts/discourse/app/components/sidebar/footer.gjs @@ -2,9 +2,10 @@ import Component from "@glimmer/component"; import { action } from "@ember/object"; import { service } from "@ember/service"; import DButton from "discourse/components/d-button"; +import KeyboardShortcutsHelp from "discourse/components/modal/keyboard-shortcuts-help"; import SidebarSectionForm from "discourse/components/modal/sidebar-section-form"; import PluginOutlet from "discourse/components/plugin-outlet"; -import routeAction from "discourse/helpers/route-action"; +import mobile from "discourse/lib/mobile"; import { MAIN_PANEL } from "discourse/lib/sidebar/panels"; export default class SidebarFooter extends Component { @@ -26,15 +27,21 @@ export default class SidebarFooter extends Component { ); } - get showKeyboardShortcutsButton() { - return this.site.desktopView; - } - @action manageSections() { this.modal.show(SidebarSectionForm); } + @action + showKeyboardShortcuts() { + this.modal.show(KeyboardShortcutsHelp); + } + + @action + toggleMobileView() { + mobile.toggleMobileView(); + } +