FIX: search header does not require login for mobile

This commit is contained in:
Arpit Jalan 2015-11-19 14:31:52 +05:30
parent 88f1a8f0b1
commit cf389e0137

View file

@ -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 {