diff --git a/app/src/plugins/app@vendor/vue-cal/cell.vue b/app/src/plugins/app@vendor/vue-cal/cell.vue index 674c665..71e513c 100644 --- a/app/src/plugins/app@vendor/vue-cal/cell.vue +++ b/app/src/plugins/app@vendor/vue-cal/cell.vue @@ -265,7 +265,7 @@ export default { const time = moment(dateFrom).format('HH:mm') const isTeamCalendar = this.$route.name === 'Dashboard - Teams' - const employee = isTeamCalendar ? split.employee_id : this.user.id + const employee = isTeamCalendar ? split.employee_id : Number(localStorage.getItem('selectedEmployee') || this.user.id) this.$events.emit('show-menu-modal', { time, diff --git a/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue b/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue index 1978e83..b97c2ea 100644 --- a/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue +++ b/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue @@ -53,7 +53,7 @@ export default { }, mounted() { - this.selectedEmployee = this.user.id + this.selectedEmployee = Number(localStorage.getItem('selectedEmployee') || this.user.id) // this.time = this.unscheduledTime this.$nextTick(() => this._updateFilters()) }, @@ -88,6 +88,7 @@ export default { selectedEmployee(id) { this.filter.employee = this.enrichedEmployees.find(employee => employee.id == id) this._emitFilterChanged() + localStorage.setItem('selectedEmployee', id) }, splitDays() {