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:
@ -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)
|
||||
|
@ -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
|
||||
|
@ -143,7 +143,7 @@ async function submit() {
|
||||
|
||||
try {
|
||||
await authStore.register(toRaw(credentials))
|
||||
} catch (e: any) {
|
||||
} catch (e) {
|
||||
errorMessage.value = e?.message
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user