diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-29 07:05:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-29 07:05:56 +0900 |
| commit | 2762b78bcca788ae7fb0a53b1913bf2207a66e8b (patch) | |
| tree | b3fd278265d81be4df8d9a7bc50a31eee36f7e70 /src/client | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | misskey-2762b78bcca788ae7fb0a53b1913bf2207a66e8b.tar.gz misskey-2762b78bcca788ae7fb0a53b1913bf2207a66e8b.tar.bz2 misskey-2762b78bcca788ae7fb0a53b1913bf2207a66e8b.zip | |
モバイルでもサウンドの設定を行えるように
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/mobile/views/pages/settings.vue | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index 6b82be099d..7437eb8b47 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -42,6 +42,12 @@ </ui-card> <ui-card> + <div slot="title">%fa:volume-up% %i18n:@sound%</div> + + <ui-switch v-model="enableSounds">%i18n:@enable-sounds%</ui-switch> + </ui-card> + + <ui-card> <div slot="title">%fa:language% %i18n:@lang%</div> <ui-select v-model="lang" placeholder="%i18n:@auto%"> @@ -142,6 +148,11 @@ export default Vue.extend({ get() { return this.$store.state.device.lang; }, set(value) { this.$store.commit('device/set', { key: 'lang', value }); } }, + + enableSounds: { + get() { return this.$store.state.device.enableSounds; }, + set(value) { this.$store.commit('device/set', { key: 'enableSounds', value }); } + }, }, mounted() { |