mirror of
https://github.com/discourse/discourse.git
synced 2025-05-01 17:44:38 +08:00
FIX: hide/show preview in composer preference is saved in local storage
This commit is contained in:
parent
71728b3adb
commit
4606cb4f3b
@ -67,7 +67,7 @@ Discourse.Composer = Discourse.Model.extend({
|
|||||||
|
|
||||||
togglePreview: function() {
|
togglePreview: function() {
|
||||||
this.toggleProperty('showPreview');
|
this.toggleProperty('showPreview');
|
||||||
Discourse.KeyValueStore.set({ key: 'showPreview', value: this.get('showPreview') });
|
Discourse.KeyValueStore.set({ key: 'composer.showPreview', value: this.get('showPreview') });
|
||||||
},
|
},
|
||||||
|
|
||||||
// Import a quote from the post
|
// Import a quote from the post
|
||||||
|
Loading…
x
Reference in New Issue
Block a user