implemented import/export for themes
This commit is contained in:
parent
bd5b62b107
commit
dda95543e8
4 changed files with 158 additions and 2 deletions
|
@ -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 })
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue