FIX: don't store state of composer's preview in mobile view
This commit is contained in:
parent
27d94b3a0b
commit
eaa54a5a64
|
@ -86,7 +86,9 @@ export default Ember.Controller.extend({
|
|||
|
||||
@observes('showPreview')
|
||||
showPreviewChanged() {
|
||||
this.keyValueStore.set({ key: 'composer.showPreview', value: this.get('showPreview') });
|
||||
if (!this.site.mobileView) {
|
||||
this.keyValueStore.set({ key: 'composer.showPreview', value: this.get('showPreview') });
|
||||
}
|
||||
},
|
||||
|
||||
@computed('model.replyingToTopic', 'model.creatingPrivateMessage', 'model.targetUsernames')
|
||||
|
|
Loading…
Reference in New Issue