mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -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 (this.siteSettings.login_required && !this.currentUser) {
|
||||
this.sendAction('loginAction');
|
||||
} else {
|
||||
if (Discourse.Mobile.mobileView && this.get('mobileAction')) {
|
||||
this.sendAction('mobileAction');
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.siteSettings.login_required && !this.currentUser) {
|
||||
this.sendAction('loginAction');
|
||||
} else {
|
||||
if (this.get('action')) {
|
||||
this.sendAction('action');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue