implemented import/export for themes

This commit is contained in:
Henry Jameson 2021-03-08 19:53:30 +02:00
parent bd5b62b107
commit dda95543e8
4 changed files with 158 additions and 2 deletions

View file

@ -110,6 +110,11 @@ const config = {
}
},
actions: {
loadSettings ({ dispatch }, data) {
Object.keys(this.state.config).forEach(
name => dispatch('setOption', { name, value: data[name] })
)
},
setHighlight ({ commit, dispatch }, { user, color, type }) {
commit('setHighlight', { user, color, type })
},