From cf389e0137627458332c817094f64132e6e8144d Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 19 Nov 2015 14:31:52 +0530 Subject: [PATCH] FIX: search header does not require login for mobile --- .../discourse/components/header-dropdown.js.es6 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/components/header-dropdown.js.es6 b/app/assets/javascripts/discourse/components/header-dropdown.js.es6 index 387f7ae8f..7a3f52f45 100644 --- a/app/assets/javascripts/discourse/components/header-dropdown.js.es6 +++ b/app/assets/javascripts/discourse/components/header-dropdown.js.es6 @@ -14,14 +14,14 @@ export default Ember.Component.extend({ actions: { toggle() { - if (Discourse.Mobile.mobileView && this.get('mobileAction')) { - this.sendAction('mobileAction'); - return; - } - if (this.siteSettings.login_required && !this.currentUser) { this.sendAction('loginAction'); } else { + if (Discourse.Mobile.mobileView && this.get('mobileAction')) { + this.sendAction('mobileAction'); + return; + } + if (this.get('action')) { this.sendAction('action'); } else {