diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 06:08:49 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 06:08:49 +0900 |
| commit | b8e7df198d5eabbf8c0d82f4aee86a38168d8d71 (patch) | |
| tree | 922f2872df0da14557bb0af1b04ceeb99255c2e0 /src/client/pages/preferences | |
| parent | 12.17.0 (diff) | |
| download | misskey-b8e7df198d5eabbf8c0d82f4aee86a38168d8d71.tar.gz misskey-b8e7df198d5eabbf8c0d82f4aee86a38168d8d71.tar.bz2 misskey-b8e7df198d5eabbf8c0d82f4aee86a38168d8d71.zip | |
Improve sound
Diffstat (limited to 'src/client/pages/preferences')
| -rw-r--r-- | src/client/pages/preferences/index.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/pages/preferences/index.vue b/src/client/pages/preferences/index.vue index 9d57ddad58..34dcbd8254 100644 --- a/src/client/pages/preferences/index.vue +++ b/src/client/pages/preferences/index.vue @@ -37,6 +37,11 @@ <option v-for="sound in sounds" :value="sound" :key="sound">{{ sound || $t('none') }}</option> <template #text><button class="_textButton" @click="listen(sfxChatBg)" v-if="sfxChatBg"><fa :icon="faPlay"/> {{ $t('listen') }}</button></template> </mk-select> + <mk-select v-model="sfxAntenna"> + <template #label>{{ $t('_sfx.antenna') }}</template> + <option v-for="sound in sounds" :value="sound" :key="sound">{{ sound || $t('none') }}</option> + <template #text><button class="_textButton" @click="listen(sfxAntenna)" v-if="sfxAntenna"><fa :icon="faPlay"/> {{ $t('listen') }}</button></template> + </mk-select> </div> </section> @@ -97,6 +102,8 @@ const sounds = [ 'syuilo/pope1', 'syuilo/pope2', 'syuilo/waon', + 'syuilo/popo', + 'syuilo/triple', 'aisha/1', 'aisha/2', 'aisha/3', @@ -196,6 +203,11 @@ export default Vue.extend({ get() { return this.$store.state.device.sfxChatBg; }, set(value) { this.$store.commit('device/set', { key: 'sfxChatBg', value }); } }, + + sfxAntenna: { + get() { return this.$store.state.device.sfxAntenna; }, + set(value) { this.$store.commit('device/set', { key: 'sfxAntenna', value }); } + }, }, watch: { |