mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-04 11:17:32 +01:00
refs #2035 Add a notice for toot visibility settings
This commit is contained in:
parent
ff3091edf4
commit
ec6c249761
@ -93,7 +93,8 @@
|
||||
"toot": {
|
||||
"title": "Toot",
|
||||
"visibility": {
|
||||
"description": "Customize default visibility of toot.",
|
||||
"description": "Customize default visibility of toot",
|
||||
"notice": "This setting applies to only new toots, replies follow visibility of original toots",
|
||||
"public": "Public",
|
||||
"unlisted": "Unlisted",
|
||||
"private": "Private",
|
||||
|
@ -1,23 +1,19 @@
|
||||
<template>
|
||||
<div id="general">
|
||||
<h2>{{ $t('settings.general.title') }}</h2>
|
||||
<el-form class="toot section" label-width="250px" label-position="right" size="medium">
|
||||
<h3>{{ $t('settings.general.toot.title') }}</h3>
|
||||
<el-form-item for="visibility" :label="$t('settings.general.toot.visibility.description')">
|
||||
<el-select id="visibility" v-model="tootVisibility" placeholder="visibility">
|
||||
<el-option
|
||||
v-for="v in visibilities"
|
||||
:key="v.value"
|
||||
:label="$t(v.name)"
|
||||
:value="v.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="sensitive" :label="$t('settings.general.toot.sensitive.description')">
|
||||
<el-switch id="sensitive" v-model="tootSensitive"></el-switch>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div id="general">
|
||||
<h2>{{ $t('settings.general.title') }}</h2>
|
||||
<el-form class="toot section" label-width="250px" label-position="right" size="medium">
|
||||
<h3>{{ $t('settings.general.toot.title') }}</h3>
|
||||
<el-form-item for="visibility" :label="$t('settings.general.toot.visibility.description')">
|
||||
<el-select id="visibility" v-model="tootVisibility" placeholder="visibility">
|
||||
<el-option v-for="v in visibilities" :key="v.value" :label="$t(v.name)" :value="v.value"> </el-option>
|
||||
</el-select>
|
||||
<p class="notice">{{ $t('settings.general.toot.visibility.notice') }}</p>
|
||||
</el-form-item>
|
||||
<el-form-item for="sensitive" :label="$t('settings.general.toot.sensitive.description')">
|
||||
<el-switch id="sensitive" v-model="tootSensitive"></el-switch>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -25,34 +21,30 @@ import Visibility from '~/src/constants/visibility'
|
||||
|
||||
export default {
|
||||
name: 'General',
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
visibilities: [
|
||||
Visibility.Public,
|
||||
Visibility.Unlisted,
|
||||
Visibility.Private
|
||||
]
|
||||
visibilities: [Visibility.Public, Visibility.Unlisted, Visibility.Private]
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
tootVisibility: {
|
||||
get () {
|
||||
get() {
|
||||
return this.$store.state.Settings.General.visibility
|
||||
},
|
||||
set (value) {
|
||||
set(value) {
|
||||
this.$store.dispatch('Settings/General/setVisibility', value)
|
||||
}
|
||||
},
|
||||
tootSensitive: {
|
||||
get () {
|
||||
get() {
|
||||
return this.$store.state.Settings.General.sensitive
|
||||
},
|
||||
set (value) {
|
||||
set(value) {
|
||||
this.$store.dispatch('Settings/General/setSensitive', value)
|
||||
}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
created() {
|
||||
this.$store.dispatch('Settings/General/fetchSettings')
|
||||
}
|
||||
}
|
||||
@ -67,5 +59,10 @@ export default {
|
||||
color: var(--theme-primary-color);
|
||||
}
|
||||
}
|
||||
|
||||
.notice {
|
||||
color: #c0c4cc;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user