diff --git a/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue b/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue index 187e9ef..ba72bfa 100644 --- a/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue +++ b/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue @@ -16,10 +16,10 @@
- checkmark-icon - checkmark-icon - pencil-icon - trash-icon + checkmark-icon + checkmark-icon + pencil-icon + trash-icon
@@ -35,26 +35,25 @@ export default { subtasks: { type: Array, required: true - }, + } }, computed: { ...mapGetters('tm', ['enrichedEmployees']), enrichedtasks() { - return this.subtasks.map(subtask => { - const employee = this.enrichedEmployees.find(employee => employee.id == subtask.employee_id) + return this.subtasks.map((subtask) => { + const employee = this.enrichedEmployees.find((employee) => employee.id == subtask.employee_id) return { ...subtask, - _employeeInitials: employee._initials, - _employeeFullName: employee._fullName + _employeeInitials: employee ? employee._initials : '?', + _employeeFullName: employee ? employee._fullName : '' } }) } }, - methods: { openDeleteTaskModal(subtask) { this.$events.emit('show-delete-task-modal', { subtask }) @@ -85,4 +84,4 @@ td:not(:last-child) -webkit-box-orient: vertical overflow: hidden text-overflow: ellipsis - \ No newline at end of file + 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 ece524b..b44d7c9 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 @@ - + @@ -42,7 +42,7 @@ {{ employee?.name.charAt(0) + employee?.surname.charAt(0) }}

- + @@ -50,7 +50,7 @@ - Pridať zamestnanca + Pridať zamestnanca