FIX: don't store state of composer's preview in mobile view

This commit is contained in:
Gerhard Schlager 2017-11-23 15:12:18 +01:00
parent 27d94b3a0b
commit eaa54a5a64
1 changed files with 3 additions and 1 deletions

View File

@ -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')