mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: search header does not require login for mobile
This commit is contained in:
parent
88f1a8f0b1
commit
cf389e0137
1 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue