diff --git a/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 index a3c077748..910b8d661 100644 --- a/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 @@ -2,6 +2,12 @@ import computed from 'ember-addons/ember-computed-decorators'; export default Ember.Component.extend({ classNames: ['hamburger-panel'], + @computed('currentUser.read_faq') + prioritizeFaq(readFaq) { + // If it's a custom FAQ never prioritize it + return Ember.isEmpty(this.siteSettings.faq_url) && !readFaq; + }, + @computed() showKeyboardShortcuts() { return !Discourse.Mobile.mobileView && !this.capabilities.touch; diff --git a/app/assets/javascripts/discourse/templates/components/hamburger-menu.hbs b/app/assets/javascripts/discourse/templates/components/hamburger-menu.hbs index ee75d18a7..fe7050955 100644 --- a/app/assets/javascripts/discourse/templates/components/hamburger-menu.hbs +++ b/app/assets/javascripts/discourse/templates/components/hamburger-menu.hbs @@ -1,5 +1,5 @@ {{#menu-panel visible=visible}} - {{#unless currentUser.read_faq}} + {{#if prioritizeFaq}} {{#menu-links}}