This commit is contained in:
Craig
2020-02-12 22:41:52 +00:00
parent 714075935f
commit 1f8b4d44c7
3 changed files with 28 additions and 8 deletions

View File

@ -15,12 +15,17 @@ import * as emoji from './emoji'
export const state = () => ({
username: get<string>('username', ''),
password: get<string>('password', ''),
active: false,
connecting: false,
connected: false,
locked: false,
})
export const mutations = mutationTree(state, {
setActive(state) {
state.active = true
},
setLogin(state, { username, password }: { username: string; password: string }) {
state.username = username
state.password = password