diff --git a/backend/src/routes/history.ts b/backend/src/routes/history.ts index 829f247..0052c02 100644 --- a/backend/src/routes/history.ts +++ b/backend/src/routes/history.ts @@ -28,6 +28,7 @@ const columnMap: Record = { customerinventoryitems: historyitems.customerinventoryitem, memberrelations: historyitems.memberrelation, outgoingsepamandates: historyitems.outgoingsepamandate, + projecttypes: historyitems.projecttype, }; const insertFieldMap: Record = { @@ -55,6 +56,7 @@ const insertFieldMap: Record = { customerinventoryitems: "customerinventoryitem", memberrelations: "memberrelation", outgoingsepamandates: "outgoingsepamandate", + projecttypes: "projecttype", } const parseId = (value: string) => { diff --git a/backend/src/utils/history.ts b/backend/src/utils/history.ts index 7ea639b..e5a37c2 100644 --- a/backend/src/utils/history.ts +++ b/backend/src/utils/history.ts @@ -35,6 +35,7 @@ const HISTORY_ENTITY_LABELS: Record = { memberrelations: "Mitgliedsverhältnisse", teams: "Teams", outgoingsepamandates: "Ausgehende SEPA-Mandate", + projecttypes: "Projekttypen", } export function getHistoryEntityLabel(entity: string) { @@ -96,6 +97,7 @@ export async function insertHistoryItem( files: "file", memberrelations: "memberrelation", outgoingsepamandates: "outgoingsepamandate", + projecttypes: "projecttype", } const fkColumn = columnMap[params.entity] diff --git a/frontend/pages/projecttypes/[mode]/[[id]].vue b/frontend/pages/projecttypes/[mode]/[[id]].vue index b7c895f..b98114e 100644 --- a/frontend/pages/projecttypes/[mode]/[[id]].vue +++ b/frontend/pages/projecttypes/[mode]/[[id]].vue @@ -1,314 +1,392 @@