mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[toast] adding parsing function
This commit is contained in:
1 parent
f5f787b5fe
commit
f40065ffd1
18 files changed
+21
-21
No files matched your search
@@ -43,7 +43,7 @@ export default {
|
||||
const blob = await response.blob()
|
||||
FileSaver.saveAs(blob, file.name)
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
} finally {
|
||||
file.isLoading = false
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ export default {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
},
|
||||
|
||||
@@ -142,7 +142,7 @@ export default {
|
||||
this.$events.emit("blocker-created")
|
||||
this.closeModal()
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
this.$emit('on-blocker-deleted', this.blocker)
|
||||
this.closeModal()
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
} finally {
|
||||
this.isDeleting = false
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export default {
|
||||
this.$emit('master-task-edited', mastertask)
|
||||
this.$events.emit('close-both-modals')
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
this.$emit('on-mastertask-deleted', this.mastertask)
|
||||
this.closeModal()
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
} finally {
|
||||
this.isDeleting = false
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
this.$events.emit('master-task:team-member-deleted', { teamId: this.team.id, memberId: this.member.id })
|
||||
this.closeModal()
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ export default {
|
||||
this.$emit('master-task-edited', this.mastertask)
|
||||
this.closeModal()
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
} finally {
|
||||
this.isSaving = false
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
this.visible = false
|
||||
this.$emit('on-subtask-edited', subtask)
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
this.closeModal()
|
||||
this.$emit('on-subtask-deleted', this.subtask)
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
} finally {
|
||||
this.isDeleting = false
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ export default {
|
||||
this.editMode = editMode || !this.subtask.id
|
||||
} catch (error) {
|
||||
console.error('ERROR', error)
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
},
|
||||
|
||||
@@ -288,7 +288,7 @@ export default {
|
||||
|
||||
this.closeModal()
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
} finally {
|
||||
this.isSaving = false
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ export default {
|
||||
this.$emit('update', this.team)
|
||||
this.$store.commit('tm/delete_team', this.team)
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
} finally {
|
||||
this.isDeleting = false
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ export default {
|
||||
this.team = { employees: [] }
|
||||
}
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
},
|
||||
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
|
||||
this.closeModal()
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
this.$toast.error(this.$parseError(error))
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user