FIX: switch to desktop not working

This commit is contained in:
Sam 2016-02-24 14:21:07 +11:00
parent 358e027e31
commit 8322bcf0c3

View file

@ -1,4 +1,6 @@
import computed from 'ember-addons/ember-computed-decorators'; import computed from 'ember-addons/ember-computed-decorators';
import mobile from 'discourse/lib/mobile';
export default Ember.Component.extend({ export default Ember.Component.extend({
classNames: ['hamburger-panel'], classNames: ['hamburger-panel'],
@ -68,7 +70,7 @@ export default Ember.Component.extend({
this.sendAction('showKeyboardAction'); this.sendAction('showKeyboardAction');
}, },
toggleMobileView() { toggleMobileView() {
this.site.toggleMobileView(); mobile.toggleMobileView();
} }
} }
}); });