diff --git a/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue b/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue index 30abd81..a3205d2 100644 --- a/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue +++ b/app/src/plugins/tm@modal/master-task/_components/a-mastertask-description.vue @@ -2,7 +2,7 @@ - + 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 42f8503..fcc5622 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 @@ -25,7 +25,7 @@ - + {{ employee?.name.charAt(0) + employee?.surname.charAt(0) }} @@ -35,6 +35,17 @@ + + + + + {{ employee?.name.charAt(0) + employee?.surname.charAt(0) }} + + + + + + @@ -261,10 +272,14 @@ export default { this.mastertask.project_id = project?.id || null this.mastertask.team_id = this.mastertask.team?.id || null - // this.mastertask.subtasks.forEach(({ employee_id, duration}) => { - // const employee = this.mastertask.employees.find(({ id }) => id == employee_id) - // employee.duration = duration - // }) + this.mastertask._allEmployees = this.mastertask.subtasks.map(({ employee_id, duration}) => { + const employee = this.enrichedEmployees.find(({ id }) => id == employee_id) + employee.duration = duration + + return employee + }) + + console.log('NEW', this.mastertask) // this.mastertask.project_code = project.code } else {
{{ employee?.name.charAt(0) + employee?.surname.charAt(0) }} @@ -35,6 +35,17 @@
+ {{ employee?.name.charAt(0) + employee?.surname.charAt(0) }} +