mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
bugs + CR's
This commit is contained in:
1 parent
9974d8b9e4
commit
bb7b59cc0e
15 files changed
+258
-20
No files matched your search
@@ -211,7 +211,10 @@ export default {
|
||||
if (subtask?.id) {
|
||||
const data = await this.$axios.get_auth_data(`v1/subtasks/${subtask.id}`)
|
||||
|
||||
if (!data.deadline) return (this.subtask = this._enrichTask(data))
|
||||
if (!data.deadline) {
|
||||
this.editMode = editMode || !data.id
|
||||
return (this.subtask = this._enrichTask(data))
|
||||
}
|
||||
|
||||
const splittedDeadline = data.deadline.split(' ')
|
||||
data.deadline = moment(splittedDeadline[0])
|
||||
@@ -231,9 +234,9 @@ export default {
|
||||
this.subtask.project_code = subtask.project_code
|
||||
}
|
||||
}
|
||||
|
||||
this.editMode = editMode || !this.subtask.id
|
||||
} catch (error) {
|
||||
console.error('ERROR', error)
|
||||
this.$toast.error(error)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user