Add heir management functionality in Falukant module

- Implemented setHeir method in FalukantService to designate a child as heir, including validation checks for user and child relationships.
- Updated FalukantController to expose the setHeir endpoint, allowing users to set heirs via the API.
- Enhanced FalukantRouter with a new route for setting heirs.
- Modified FamilyView component to include UI elements for setting heirs, with success and error feedback.
- Updated localization files in both German and English to include new translations related to heir management, improving user experience.
This commit is contained in:
Torsten Schulz (local)
2025-12-08 13:22:43 +01:00
parent e97a2a62c9
commit 03e3a21a25
7 changed files with 125 additions and 2 deletions

View File

@@ -405,6 +405,11 @@
"title": "Kinder",
"name": "Name",
"age": "Alter",
"heir": "Erbe",
"isHeir": "Erbe",
"setAsHeir": "Als Erben festlegen",
"heirSetSuccess": "Das Kind wurde erfolgreich als Erbe festgelegt.",
"heirSetError": "Fehler beim Festlegen des Erben.",
"actions": "Aktionen",
"none": "Keine Kinder vorhanden.",
"detailButton": "Details anzeigen",

View File

@@ -201,6 +201,23 @@
"councillor": "Councillor",
"assessor": "Assessor"
}
},
"family": {
"children": {
"title": "Children",
"name": "Name",
"age": "Age",
"heir": "Heir",
"isHeir": "Heir",
"setAsHeir": "Set as Heir",
"heirSetSuccess": "The child has been successfully set as heir.",
"heirSetError": "Error setting heir.",
"actions": "Actions",
"none": "No children available.",
"detailButton": "Show Details",
"addChild": "Add Child",
"baptism": "Baptize"
}
}
}
}