Squashed merge from refactor/code-cleanup to main

This commit is contained in:
Roberto Tonino
2021-07-17 14:28:29 +02:00
parent b677f422a2
commit 76b9185127
49 changed files with 2086 additions and 2118 deletions

View File

@@ -28,10 +28,9 @@ const mutations = {
SET_ERRORS(state, payload) {
// The payload has useless data for the GUI, so only the needed data is saved in the store
for (const errorName in state) {
// eslint-disable-next-line no-prototype-builtins
if (state.hasOwnProperty(errorName)) {
const error = payload[errorName]
state[errorName] = error
state[errorName] = payload[errorName]
}
}
}

View File

@@ -34,7 +34,8 @@ const actions = {
commit('RESET_LOGIN')
},
setARL({ commit }, payload) {
let { arl, saveOnLocalStorage } = payload
let { saveOnLocalStorage } = payload
const { arl } = payload
saveOnLocalStorage = typeof saveOnLocalStorage === 'undefined' ? true : saveOnLocalStorage
@@ -45,7 +46,8 @@ const actions = {
}
},
setAccessToken({ commit }, payload) {
let { accessToken, saveOnLocalStorage } = payload
let { saveOnLocalStorage } = payload
const { accessToken } = payload
saveOnLocalStorage = typeof saveOnLocalStorage === 'undefined' ? true : saveOnLocalStorage