diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 03:14:17 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 03:14:17 +0900 |
| commit | 880cea5a564268c3d2e6ed884d92827710fb2bb5 (patch) | |
| tree | 6d737d4127fb1226ac4b8f147a8eb77c6277bd8f /src/client/pages | |
| parent | サウンド設定など (diff) | |
| download | misskey-880cea5a564268c3d2e6ed884d92827710fb2bb5.tar.gz misskey-880cea5a564268c3d2e6ed884d92827710fb2bb5.tar.bz2 misskey-880cea5a564268c3d2e6ed884d92827710fb2bb5.zip | |
Better sfx
Diffstat (limited to 'src/client/pages')
| -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 4193959188..9d57ddad58 100644 --- a/src/client/pages/preferences/index.vue +++ b/src/client/pages/preferences/index.vue @@ -17,6 +17,11 @@ <option v-for="sound in sounds" :value="sound" :key="sound">{{ sound || $t('none') }}</option> <template #text><button class="_textButton" @click="listen(sfxNote)" v-if="sfxNote"><fa :icon="faPlay"/> {{ $t('listen') }}</button></template> </mk-select> + <mk-select v-model="sfxNoteMy"> + <template #label>{{ $t('_sfx.noteMy') }}</template> + <option v-for="sound in sounds" :value="sound" :key="sound">{{ sound || $t('none') }}</option> + <template #text><button class="_textButton" @click="listen(sfxNoteMy)" v-if="sfxNoteMy"><fa :icon="faPlay"/> {{ $t('listen') }}</button></template> + </mk-select> <mk-select v-model="sfxNotification"> <template #label>{{ $t('_sfx.notification') }}</template> <option v-for="sound in sounds" :value="sound" :key="sound">{{ sound || $t('none') }}</option> @@ -87,6 +92,8 @@ import { langs } from '../../config'; const sounds = [ null, + 'syuilo/up', + 'syuilo/down', 'syuilo/pope1', 'syuilo/pope2', 'syuilo/waon', @@ -170,6 +177,11 @@ export default Vue.extend({ set(value) { this.$store.commit('device/set', { key: 'sfxNote', value }); } }, + sfxNoteMy: { + get() { return this.$store.state.device.sfxNoteMy; }, + set(value) { this.$store.commit('device/set', { key: 'sfxNoteMy', value }); } + }, + sfxNotification: { get() { return this.$store.state.device.sfxNotification; }, set(value) { this.$store.commit('device/set', { key: 'sfxNotification', value }); } |