mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
fix mastertask creatu
This commit is contained in:
1 parent
f55d62dacf
commit
9974d8b9e4
42 files changed
+578
-5
No files matched your search
@@ -297,8 +297,6 @@ export default {
|
||||
},
|
||||
|
||||
async save() {
|
||||
this.isSaving = true
|
||||
|
||||
if (this.mastertask.id) {
|
||||
this.mastertask.employees = this.mastertask.employees.map(employee => {
|
||||
const { duration } = this.mastertask.subtasks.find(({ employee_id }) => employee_id == employee.id)
|
||||
@@ -318,6 +316,7 @@ export default {
|
||||
this._mergeDeadlineTimeDate()
|
||||
|
||||
try {
|
||||
this.isSaving = true
|
||||
this.mastertask.deadline = moment(this.mastertask.deadline).format('YYYY-MM-DD HH:MM:SS')
|
||||
if (this.mastertask.id) await this.$axios.put_auth_data(`v1/mastertasks/${this.mastertask.id}`, this.mastertask)
|
||||
else await this.$axios.post_auth_data('v1/mastertasks', this.mastertask)
|
||||
|
||||
@@ -286,7 +286,7 @@ export default {
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
} finally {
|
||||
this.isSaving = true
|
||||
this.isSaving = false
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user