FIX: search header does not require login for mobile
This commit is contained in:
parent
88f1a8f0b1
commit
cf389e0137
|
@ -14,14 +14,14 @@ export default Ember.Component.extend({
|
||||||
actions: {
|
actions: {
|
||||||
toggle() {
|
toggle() {
|
||||||
|
|
||||||
if (Discourse.Mobile.mobileView && this.get('mobileAction')) {
|
|
||||||
this.sendAction('mobileAction');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.siteSettings.login_required && !this.currentUser) {
|
if (this.siteSettings.login_required && !this.currentUser) {
|
||||||
this.sendAction('loginAction');
|
this.sendAction('loginAction');
|
||||||
} else {
|
} else {
|
||||||
|
if (Discourse.Mobile.mobileView && this.get('mobileAction')) {
|
||||||
|
this.sendAction('mobileAction');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.get('action')) {
|
if (this.get('action')) {
|
||||||
this.sendAction('action');
|
this.sendAction('action');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue