fix(): fixed master task not editable because of invalid employee duration

This commit is contained in:
Matej Glasnák committed 2025-10-08 20:36:52 +02:00
1 parent f38d45160c
commit 80d0e57351
2 files changed
+643 -369

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -38,8 +38,8 @@
v-model="subtask.master_task_id" v-model="subtask.master_task_id"
label="Master task" label="Master task"
:class="{ error: v$.subtask.master_task_id.$errors.length }" :class="{ error: v$.subtask.master_task_id.$errors.length }"
:items="mastertasks" :items="enrichedMastertasks"
:item-title="(item) => item.name + ' [' + item.project_code + ']'" :item-title="(item) => item._fullName || item.name"
item-value="id" item-value="id"
variant="solo" variant="solo"
class="modal-input" class="modal-input"
@@ -453,6 +453,12 @@ export default {
computed: { computed: {
...mapGetters('tm', ['mastertasks', 'enrichedEmployees']), ...mapGetters('tm', ['mastertasks', 'enrichedEmployees']),
enrichedMastertasks() {
return this.mastertasks.map((mastertask) => ({
...mastertask,
_fullName: `${mastertask.name} [${mastertask.project_code}]`,
}));
},
}, },
validations() { validations() {