Removed unused structures and improved logout
This commit is contained in:
parent
6d297256d1
commit
bc9e51d199
1 changed files with 2 additions and 6 deletions
|
@ -7,15 +7,9 @@ export const juggl = {
|
|||
records: {},
|
||||
user: undefined,
|
||||
auth: undefined,
|
||||
usingFinishedRecords: false,
|
||||
usingRunningRecords: false,
|
||||
usingProjects: false,
|
||||
recordsLimit: 0
|
||||
},
|
||||
mutations: {
|
||||
setKey(state, key) {
|
||||
state.key = key;
|
||||
},
|
||||
setProjects(state, projects) {
|
||||
state.projects = projects;
|
||||
},
|
||||
|
@ -162,6 +156,8 @@ export const juggl = {
|
|||
},
|
||||
logout({ commit }) {
|
||||
commit("setUser", undefined);
|
||||
commit("setProjects", []);
|
||||
commit("setRecords", []);
|
||||
commit("logout");
|
||||
},
|
||||
endRecord({ getters }, recordId) {
|
||||
|
|
Loading…
Reference in a new issue