Add showVia option (#3182)

* Resolve #3160

* Fix bug

* Fix bug
This commit is contained in:
Aya Morisawa
2018-11-09 21:10:21 +09:00
committed by syuilo
parent f7c596beac
commit 035bdd0279
8 changed files with 19 additions and 4 deletions

View File

@@ -112,6 +112,7 @@
<ui-switch v-model="reduceMotion">{{ $t('@.reduce-motion') }}</ui-switch>
<ui-switch v-model="contrastedAcct">{{ $t('contrasted-acct') }}</ui-switch>
<ui-switch v-model="showFullAcct">{{ $t('@.show-full-acct') }}</ui-switch>
<ui-switch v-model="showVia">{{ $t('@.show-via') }}</ui-switch>
<ui-switch v-model="useOsDefaultEmojis">{{ $t('@.use-os-default-emojis') }}</ui-switch>
<ui-switch v-model="iLikeSushi">{{ $t('@.i-like-sushi') }}</ui-switch>
</section>
@@ -479,6 +480,11 @@ export default Vue.extend({
set(value) { this.$store.dispatch('settings/set', { key: 'showFullAcct', value }); }
},
showVia: {
get() { return this.$store.state.settings.showVia; },
set(value) { this.$store.dispatch('settings/set', { key: 'showVia', value }); }
},
iLikeSushi: {
get() { return this.$store.state.settings.iLikeSushi; },
set(value) { this.$store.dispatch('settings/set', { key: 'iLikeSushi', value }); }