1
0

chore(deps): update dev-dependencies (major) (#3741)

Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/3741
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
This commit is contained in:
renovate
2023-10-20 19:34:11 +00:00
committed by konrad
parent 01c2acdf34
commit b76acb15c7
14 changed files with 195 additions and 246 deletions

View File

@ -82,7 +82,7 @@ export function useGanttTaskList<F extends Filters>(
// update the task with possible changes from server
tasks.value.set(updatedTask.id, updatedTask)
success('Saved')
} catch (e: any) {
} catch (e) {
error('Something went wrong saving the task')
// roll back changes
tasks.value.set(task.id, oldTask)

View File

@ -105,18 +105,18 @@ function useAuth() {
params: {projectId},
hash,
})
} catch (e: any) {
if (e.response?.data?.code === 13001) {
} catch (e) {
if (e?.response?.data?.code === 13001) {
authenticateWithPassword.value = true
return
}
// TODO: Put this logic in a global errorMessage handler method which checks all auth codes
let err = t('sharing.error')
if (e.response?.data?.message) {
if (e?.response?.data?.message) {
err = e.response.data.message
}
if (e.response?.data?.code === 13002) {
if (e?.response?.data?.code === 13002) {
err = t('sharing.invalidPassword')
}
errorMessage.value = err

View File

@ -143,7 +143,7 @@ async function submit() {
try {
await authStore.register(toRaw(credentials))
} catch (e: any) {
} catch (e) {
errorMessage.value = e?.message
}
}