add layout select to settings

This commit is contained in:
Miroslav Šedivý
2020-06-15 22:09:01 +02:00
parent 5cf9c29319
commit c176411512
3 changed files with 56 additions and 0 deletions

View File

@ -10,6 +10,7 @@ export const state = () => {
autoplay: get<boolean>('autoplay', true),
ignore_emotes: get<boolean>('ignore_emotes', false),
chat_sound: get<boolean>('chat_sound', true),
keyboard_layout: get<string>('keyboard_layout', 'us'),
}
}
@ -40,4 +41,9 @@ export const mutations = mutationTree(state, {
state.chat_sound = value
set('chat_sound', value)
},
setKeyboardLayout(state, value: string) {
state.keyboard_layout = value
set('keyboard_layout', value)
},
})