diff --git a/app/public/favicon.ico b/app/public/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/app/public/favicon.ico and /dev/null differ diff --git a/app/public/favicon/android-chrome-192x192.png b/app/public/favicon/android-chrome-192x192.png new file mode 100644 index 0000000..e43ddf9 Binary files /dev/null and b/app/public/favicon/android-chrome-192x192.png differ diff --git a/app/public/favicon/android-chrome-512x512.png b/app/public/favicon/android-chrome-512x512.png new file mode 100644 index 0000000..e432eb7 Binary files /dev/null and b/app/public/favicon/android-chrome-512x512.png differ diff --git a/app/public/favicon/apple-touch-icon.png b/app/public/favicon/apple-touch-icon.png new file mode 100644 index 0000000..fd4325f Binary files /dev/null and b/app/public/favicon/apple-touch-icon.png differ diff --git a/app/public/favicon/favicon-16x16.png b/app/public/favicon/favicon-16x16.png new file mode 100644 index 0000000..62f187c Binary files /dev/null and b/app/public/favicon/favicon-16x16.png differ diff --git a/app/public/favicon/favicon-32x32.png b/app/public/favicon/favicon-32x32.png new file mode 100644 index 0000000..492d205 Binary files /dev/null and b/app/public/favicon/favicon-32x32.png differ diff --git a/app/public/favicon/favicon.ico b/app/public/favicon/favicon.ico new file mode 100644 index 0000000..d54b06a Binary files /dev/null and b/app/public/favicon/favicon.ico differ diff --git a/app/public/favicon/site.webmanifest b/app/public/favicon/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/app/public/favicon/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/app/public/index.html b/app/public/index.html index 2de4da7..417a5bc 100644 --- a/app/public/index.html +++ b/app/public/index.html @@ -4,7 +4,7 @@ - + ToDo by JANDL diff --git a/app/src/plugins/tm@dashboard/_components/z-timeline.vue b/app/src/plugins/tm@dashboard/_components/z-timeline.vue index b95db4a..e9829cb 100644 --- a/app/src/plugins/tm@dashboard/_components/z-timeline.vue +++ b/app/src/plugins/tm@dashboard/_components/z-timeline.vue @@ -182,29 +182,53 @@ export default { const date = addDays(this.calConfig.date, newSplit - 1) const start = date.setHours(Math.round(event.startTimeMinutes / 60), Math.round(event.startTimeMinutes % 60), 0) const end = date.setHours(Math.round(event.endTimeMinutes / 60), Math.round(event.endTimeMinutes % 60), 0) + + const split = this.splits.find(split => split.id == newSplit ) - const editedSubtask = { - ...event.subtask, - timeblocks: [...event.subtask.timeblocks, { - id: event._timeblock_id, - is_finished: 0, - start: tmUtils.formatDateTimeForBackend(start), - end: tmUtils.formatDateTimeForBackend(end) - }], - timesheets: event.subtask.timesheets.map((timesheet) => { - delete timesheet.employee_name - return timesheet - }) - } + if(this.$route.name == 'Dashboard - Tasks') { + const editedSubtask = { + ...event.subtask, + timeblocks: [...event.subtask.timeblocks, { + id: event._timeblock_id, + is_finished: 0, + start: tmUtils.formatDateTimeForBackend(start), + end: tmUtils.formatDateTimeForBackend(end) + }], + timesheets: event.subtask.timesheets.map((timesheet) => { + delete timesheet.employee_name + return timesheet + }) + } + try { + const { subtask } = await this.$axios.put_auth(`v1/subtasks/${editedSubtask.id}`, editedSubtask) + this.$events.emit('on-subtask-edited', subtask) - try { - const { subtask } = await this.$axios.put_auth(`v1/subtasks/${editedSubtask.id}`, editedSubtask) - this.$events.emit('on-subtask-edited', subtask) - - if (subtask.employee_id == this.$store.getters['auth/user'].id) - this.$events.emit('show-task-add-time-modal', { subtask }) - } catch (error) { - this.$toast.error(error.message || error) + if (subtask.employee_id == this.$store.getters['auth/user'].id) + this.$events.emit('show-task-add-time-modal', { subtask }) + } catch (error) { + this.$toast.error(error.message || error) + } + } else if(this.$route.name == 'Dashboard - Teams') { + const editedSubtask = { + ...event.subtask, + employee_id: split.employee_id, + timeblocks: [...event.subtask.timeblocks, { + id: event._timeblock_id, + is_finished: 0, + start: tmUtils.formatDateTimeForBackend(event.start), + end: tmUtils.formatDateTimeForBackend(event.end) + }], + timesheets: event.subtask.timesheets.map((timesheet) => { + delete timesheet.employee_name + return timesheet + }) + } + try { + const { subtask } = await this.$axios.put_auth(`v1/subtasks/${editedSubtask.id}`, editedSubtask) + this.$events.emit('on-subtask-edited', subtask) + } catch (error) { + this.$toast.error(error.message || error) + } } }, 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 6a91a75..94f68ad 100644 --- a/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts +++ b/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts @@ -2,7 +2,6 @@ import { setHours, setMinutes } from 'date-fns' import moment from 'moment' import timelineUtils from '@/plugins/tm@dashboard/tasks/_utils/timeline.utils' - export default { computed: { calendarData() { @@ -57,6 +56,8 @@ export default { days.push({ 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@dashboard/teams/teams.vue b/app/src/plugins/tm@dashboard/teams/teams.vue index 45ab1b0..c376299 100644 --- a/app/src/plugins/tm@dashboard/teams/teams.vue +++ b/app/src/plugins/tm@dashboard/teams/teams.vue @@ -1,7 +1,7 @@ @@ -23,6 +23,8 @@ export default { data() { return { + hideCal: false, + filter: null, subtasks: null, blockers: null, @@ -78,6 +80,8 @@ export default { const { subtasks, blockers } = await this.$axios.get_auth(`v1/subtasks?${queryParameters}`) this.subtasks = subtasks this.blockers = blockers + this.hideCal = true + setTimeout(() => { this.hideCal = false }, 0); } catch (error) { this.$toast.error('Nepodarilo sa nacitat data!') } 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/_components/a-tasks-table.vue b/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue index 3b05b2c..187e9ef 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 @@ -3,12 +3,12 @@ {{ subtask.title }} - {{ subtask?.master_task }} + {{ subtask?.master_task }}

{{ subtask._employeeInitials }}

-

{{ subtask._employeeFullName }}

+

{{ subtask._employeeFullName }}

Ukončený

@@ -78,4 +78,11 @@ v-table, tbody td:not(:last-child) border-right: thin solid rgba(var(--v-border-color), var(--v-border-opacity)) + +.line-clamp + display: -webkit-box + -webkit-line-clamp: 2 + -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-complete-master-task-modal.vue b/app/src/plugins/tm@modal/master-task/z-complete-master-task-modal.vue index dbd3066..77e5033 100644 --- a/app/src/plugins/tm@modal/master-task/z-complete-master-task-modal.vue +++ b/app/src/plugins/tm@modal/master-task/z-complete-master-task-modal.vue @@ -22,7 +22,7 @@ import modalMixin from '@/plugins/tm@modal/_mixins/modal.mixin' export default { mixins: [ modalMixin ], - emits: ['close', 'on-master-task-edited'], + emits: ['close', 'master-task-edited'], data() { return { @@ -43,7 +43,8 @@ export default { const { mastertask } = await this.$axios.put_auth(`v1/mastertasks/${tempMastertask.id}`, tempMastertask) this.visible = false - this.$emit('on-master-task-edited', mastertask) + this.$emit('master-task-edited', mastertask) + this.$events.emit('close-both-modals') } catch (error) { this.$toast.error(error) } 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 f1ab6c6..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,9 +23,9 @@ - + -