diff --git a/client/src/EmployeesPanel.vue b/client/src/EmployeesPanel.vue index e6f0f21..e364dcf 100644 --- a/client/src/EmployeesPanel.vue +++ b/client/src/EmployeesPanel.vue @@ -2,12 +2,12 @@ import { reactive } from 'vue'; import { store } from './store.js'; -const newEmployee = reactive({ name: '', email: '', role: '', weekly_capacity_hours: 40 }); +const newEmployee = reactive({ first_name: '', last_name: '', email: '', role: '', weekly_capacity_hours: 40 }); async function addEmployee() { - if (!newEmployee.name) return; + if (!newEmployee.first_name || !newEmployee.last_name) return; await store.createEmployee({ ...newEmployee }); - Object.assign(newEmployee, { name: '', email: '', role: '', weekly_capacity_hours: 40 }); + Object.assign(newEmployee, { first_name: '', last_name: '', email: '', role: '', weekly_capacity_hours: 40 }); } @@ -15,7 +15,8 @@ async function addEmployee() {

Neuer Mitarbeiter

- + + @@ -28,7 +29,8 @@ async function addEmployee() { - + + @@ -37,7 +39,8 @@ async function addEmployee() { - + + diff --git a/client/src/ProjectsPanel.vue b/client/src/ProjectsPanel.vue index d12f9aa..ed602ed 100644 --- a/client/src/ProjectsPanel.vue +++ b/client/src/ProjectsPanel.vue @@ -1,11 +1,12 @@ diff --git a/client/src/SchedulePanel.vue b/client/src/SchedulePanel.vue index aa12202..22f667b 100644 --- a/client/src/SchedulePanel.vue +++ b/client/src/SchedulePanel.vue @@ -1,10 +1,11 @@
NameVornameNachname E-Mail Rolle Kapazität (Std/Woche)
{{ e.name }}{{ e.first_name }}{{ e.last_name }} {{ e.email }} {{ e.role }} {{ e.weekly_capacity_hours }}