diff --git a/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts b/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts
index 0616ca0..94f68ad 100644
--- a/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts
+++ b/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts
@@ -57,6 +57,7 @@ export default {
id: index + 1,
name: employee.name,
employee_id: employee.id,
+ // date: this.filter.start,
fullname: `${employee.name} ${employee.surname}`,
initials: employee.name.charAt(0).toUpperCase() + employee.surname.charAt(0).toUpperCase(),
unscheduledTime: unscheduledTime > 0 ? (unscheduledTime / 60).toFixed(1) : 0,
diff --git a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue
index 3356f41..6303913 100644
--- a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue
+++ b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue
@@ -23,7 +23,7 @@
-
+
@@ -297,6 +297,15 @@ 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)
+ employee.duration = duration
+ return employee
+ })
+ }
+
const vuelidateValid = await this.v$.$validate()
const employeesValid = await this._validateEmployees()
if (!vuelidateValid || !employeesValid) return
@@ -307,7 +316,6 @@ 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)
@@ -318,7 +326,7 @@ export default {
} catch (error) {
this.$toast.error(error)
} finally {
- this.isSaving = true
+ this.isSaving = false
}
},