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 @@
|
@@ -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 @@
-
+
@@ -31,7 +31,7 @@
{{ employee?.name.charAt(0) + employee?.surname.charAt(0) }}
-
+
@@ -42,7 +42,7 @@
{{ employee?.name.charAt(0) + employee?.surname.charAt(0) }}
-
+
@@ -50,7 +50,7 @@
- Pridať zamestnanca
+ Pridať zamestnanca
@@ -170,7 +170,7 @@ export default {
_initials: employee ? employee.name.charAt(0) + employee.surname.charAt(0) : '?',
_fullName: employee ? `${employee.name} ${employee.surname}` : ''
}
- })
+ }).filter(subtask => subtask !== null)
}
},
@@ -275,10 +275,15 @@ export default {
this.mastertask._allEmployees = this.mastertask.subtasks.map(({ employee_id, duration}) => {
const employee = this.enrichedEmployees.find(({ id }) => id == employee_id)
+
+ if (!employee) {
+ return null
+ }
+
employee.duration = duration
return employee
- })
+ }).filter(employee => employee !== null)
// this.mastertask.project_code = project.code
} else {
@@ -446,19 +451,21 @@ export default {
background: #6200EE
color: #fff
border-radius: 50%
- padding: 13px
font-size: 11.5px
- height: 24px
- width: 24px
+ height: 22px
+ width: 22px
position: absolute
top: 50%
- right: 0
- transform: translate(-120%, -50%)
+ right: 12px
+ transform: translate(0, -50%)
.remove-input
position: absolute
top: 50%
- transform: translate(120%, -50%)
+ right: 0px
+ transform: translate(-15px, -50%)
+ color: rgb(102, 102, 102) !important
+ z-index: 10
cursor: pointer
.scrolling
@@ -472,4 +479,7 @@ export default {
color: #7f39fb !important
height: 53px
text-align: center
+
+:deep(.v-field__clearable)
+ opacity: 1 !important