diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-05 09:50:03 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-05 09:50:03 +0900 |
| commit | ce589fee8cc5559262d7cf630b322bb295b18038 (patch) | |
| tree | 1790cbd04d959d06b088e5f6defec88e0940c4c3 /src/client/components | |
| parent | Update privacy.vue (diff) | |
| download | misskey-ce589fee8cc5559262d7cf630b322bb295b18038.tar.gz misskey-ce589fee8cc5559262d7cf630b322bb295b18038.tar.bz2 misskey-ce589fee8cc5559262d7cf630b322bb295b18038.zip | |
Fix bug
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/post-form.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index b2c27ec5db..53ea23de48 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -262,6 +262,8 @@ export default Vue.extend({ this.text = draft.data.text; this.useCw = draft.data.useCw; this.cw = draft.data.cw; + this.applyVisibility(draft.data.visibility); + this.localOnly = draft.data.localOnly; this.files = (draft.data.files || []).filter(e => e); if (draft.data.poll) { this.poll = true; @@ -303,6 +305,8 @@ export default Vue.extend({ this.$watch('cw', () => this.saveDraft()); this.$watch('poll', () => this.saveDraft()); this.$watch('files', () => this.saveDraft()); + this.$watch('visibility', () => this.saveDraft()); + this.$watch('localOnly', () => this.saveDraft()); }, trimmedLength(text: string) { @@ -501,6 +505,8 @@ export default Vue.extend({ text: this.text, useCw: this.useCw, cw: this.cw, + visibility: this.visibility, + localOnly: this.localOnly, files: this.files, poll: this.poll && this.$refs.poll ? (this.$refs.poll as any).get() : undefined } |