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() {
| Name | +Vorname | +Nachname | Rolle | Kapazität (Std/Woche) | @@ -37,7 +39,8 @@ async function addEmployee() {|
|---|---|---|---|---|---|
| {{ e.name }} | +{{ e.first_name }} | +{{ e.last_name }} | {{ e.email }} | {{ e.role }} | {{ e.weekly_capacity_hours }} | 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 @@ @@ -103,15 +116,23 @@ async function addAssignment(projectId, taskId) { -