build(dev): finished timeblocks rework

This commit is contained in:
Matej Glasnák committed 2025-12-08 23:54:35 +01:00
1 parent 1b0a9d5fff
commit 90dd4ee4b6
15 files changed
+194 -166

No files matched your search

+13 -13
View File
@@ -143,6 +143,19 @@ export default {
};
},
watch: {
employeeSelect(employeeId) {
if (!employeeId) return;
const employee = this.enrichedEmployees.find(
(employee) => employee.id == employeeId,
);
this.team.employees.push(employee);
this.employeeSelect = null;
this.$refs.autocomplete.search = '';
},
},
methods: {
async showModal({ team = null }) {
this.visible = true;
@@ -200,18 +213,5 @@ export default {
return team;
},
},
watch: {
employeeSelect(employeeId) {
if (!employeeId) return;
const employee = this.enrichedEmployees.find(
(employee) => employee.id == employeeId,
);
this.team.employees.push(employee);
this.employeeSelect = null;
this.$refs.autocomplete.search = '';
},
},
};
</script>