diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-05 09:42:58 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-05 09:42:58 +0900 |
| commit | 55cbf2c66e9774205ad9295730b93a76a99ebdec (patch) | |
| tree | 2c12627733c85ffbc2e99c0ad41b99ad306363ca /src/client/components | |
| parent | Fix #5799 (diff) | |
| download | misskey-55cbf2c66e9774205ad9295730b93a76a99ebdec.tar.gz misskey-55cbf2c66e9774205ad9295730b93a76a99ebdec.tar.bz2 misskey-55cbf2c66e9774205ad9295730b93a76a99ebdec.zip | |
localOnlyを記憶できるように
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/post-form.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 9a13f523aa..b2c27ec5db 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -177,6 +177,12 @@ export default Vue.extend({ } }, + watch: { + localOnly() { + this.$store.commit('device/setLocalOnly', this.localOnly); + } + }, + mounted() { if (this.initialText) { this.text = this.initialText; @@ -209,7 +215,9 @@ export default Vue.extend({ } // デフォルト公開範囲 - this.applyVisibility(this.$store.state.settings.rememberNoteVisibility ? (this.$store.state.device.visibility || this.$store.state.settings.defaultNoteVisibility) : this.$store.state.settings.defaultNoteVisibility); + this.applyVisibility(this.$store.state.settings.rememberNoteVisibility ? this.$store.state.device.visibility : this.$store.state.settings.defaultNoteVisibility); + + this.localOnly = this.$store.state.settings.rememberNoteVisibility ? this.$store.state.device.localOnly : false; // 公開以外へのリプライ時は元の公開範囲を引き継ぐ if (this.reply && ['home', 'followers', 'specified'].includes(this.reply.visibility)) { |