diff --git a/app/assets/javascripts/discourse/controllers/application.js.es6 b/app/assets/javascripts/discourse/controllers/application.js.es6 index 472bba31520..20eb7f70ad0 100644 --- a/app/assets/javascripts/discourse/controllers/application.js.es6 +++ b/app/assets/javascripts/discourse/controllers/application.js.es6 @@ -4,7 +4,6 @@ export default Ember.Controller.extend({ showTop: true, showFooter: false, styleCategory: null, - hamburgerVisible: false, @computed canSignUp() { @@ -16,12 +15,5 @@ export default Ember.Controller.extend({ @computed loginRequired() { return Discourse.SiteSettings.login_required && !Discourse.User.current(); - }, - - actions: { - toggleHamburgerMenu() { - this.toggleProperty('hamburgerVisible'); - } } - }); diff --git a/app/assets/javascripts/discourse/controllers/header.js.es6 b/app/assets/javascripts/discourse/controllers/header.js.es6 index d2bc112186f..352c867c5cc 100644 --- a/app/assets/javascripts/discourse/controllers/header.js.es6 +++ b/app/assets/javascripts/discourse/controllers/header.js.es6 @@ -3,6 +3,7 @@ const HeaderController = Ember.Controller.extend({ showExtraInfo: null, notifications: null, loadingNotifications: false, + hamburgerVisible: false, needs: ['application'], loginRequired: Em.computed.alias('controllers.application.loginRequired'), @@ -68,6 +69,10 @@ const HeaderController = Ember.Controller.extend({ self.refreshNotifications(); } headerView.showDropdownBySelector("#user-notifications"); + }, + + toggleHamburgerMenu() { + this.toggleProperty('hamburgerVisible'); } } }); diff --git a/app/assets/javascripts/discourse/templates/application.hbs b/app/assets/javascripts/discourse/templates/application.hbs index 53cf8fd5c09..cd89910d140 100644 --- a/app/assets/javascripts/discourse/templates/application.hbs +++ b/app/assets/javascripts/discourse/templates/application.hbs @@ -1,5 +1,4 @@ {{render "header"}} -{{hamburger-menu hamburgerVisible=hamburgerVisible showKeyboardAction="showKeyboardShortcutsHelp"}}