diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2020-02-08 20:02:15 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-08 20:02:15 +0900 |
| commit | b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0 (patch) | |
| tree | 4447cfec4bad31ab67126ba113f6e507ae30b4ed /src/client/pages | |
| parent | 12.3.0 (diff) | |
| download | misskey-b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0.tar.gz misskey-b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0.tar.bz2 misskey-b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0.zip | |
Fix defalut note visibility setting (#5881)
* Fix default note visibility setting
* refactor
* missing translation
* fix
Diffstat (limited to 'src/client/pages')
| -rw-r--r-- | src/client/pages/settings/general.vue | 2 | ||||
| -rw-r--r-- | src/client/pages/settings/privacy.vue | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/client/pages/settings/general.vue b/src/client/pages/settings/general.vue index 85a4ac2cfe..061838b44d 100644 --- a/src/client/pages/settings/general.vue +++ b/src/client/pages/settings/general.vue @@ -14,7 +14,7 @@ {{ $t('autoReloadWhenDisconnected') }} </mk-switch> <mk-switch v-model="$store.state.i.autoWatch" @change="onChangeAutoWatch"> - {{ $t('autoNoteWatch') }}<template #desc>{{ $t('auto-watch-desc') }}</template> + {{ $t('autoNoteWatch') }}<template #desc>{{ $t('autoNoteWatchDescription') }}</template> </mk-switch> </div> <div class="_content"> diff --git a/src/client/pages/settings/privacy.vue b/src/client/pages/settings/privacy.vue index d9c4f6ad3d..7ac9062d88 100644 --- a/src/client/pages/settings/privacy.vue +++ b/src/client/pages/settings/privacy.vue @@ -10,9 +10,11 @@ <mk-select v-model="defaultNoteVisibility" style="margin-bottom: 8px;" v-if="!rememberNoteVisibility"> <template #label>{{ $t('defaultNoteVisibility') }}</template> <option value="public">{{ $t('_visibility.public') }}</option> + <option value="home">{{ $t('_visibility.home') }}</option> <option value="followers">{{ $t('_visibility.followers') }}</option> <option value="specified">{{ $t('_visibility.specified') }}</option> </mk-select> + <mk-switch v-model="defaultNoteLocalOnly" v-if="!rememberNoteVisibility">{{ $t('_visibility.localOnly') }}</mk-switch> </div> </section> </template> @@ -46,6 +48,11 @@ export default Vue.extend({ set(value) { this.$store.dispatch('settings/set', { key: 'defaultNoteVisibility', value }); } }, + defaultNoteLocalOnly: { + get() { return this.$store.state.settings.defaultNoteLocalOnly; }, + set(value) { this.$store.dispatch('settings/set', { key: 'defaultNoteLocalOnly', value }); } + }, + rememberNoteVisibility: { get() { return this.$store.state.settings.rememberNoteVisibility; }, set(value) { this.$store.dispatch('settings/set', { key: 'rememberNoteVisibility', value }); } |