feat(falukant): enhance child details with other parent information and birth context
All checks were successful
Deploy to production / deploy (push) Successful in 3m2s
All checks were successful
Deploy to production / deploy (push) Successful in 3m2s
- Updated FalukantService to include father and mother character IDs in child relationships. - Added logic to retrieve and display other parent details in ChildDetailsDialog and FamilyView components. - Introduced new translations for 'other parent' and 'birth context' in English, German, and Spanish localization files. - Enhanced UI to show other parent information and birth context in child detail views.
This commit is contained in:
@@ -27,6 +27,14 @@
|
||||
<td>{{ $t('falukant.family.children.gender') }}</td>
|
||||
<td>{{ $t(`falukant.titles.${child.gender}.noncivil`) }}</td>
|
||||
</tr>
|
||||
<tr v-if="child.birthContext">
|
||||
<td>{{ $t('falukant.family.children.birthContextLabel') }}</td>
|
||||
<td>{{ $t('falukant.family.children.birthContextLong.' + child.birthContext) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $t('falukant.family.children.otherParent') }}</td>
|
||||
<td>{{ otherParentDisplay }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $t('falukant.family.children.heir') }}</td>
|
||||
<td>
|
||||
@@ -58,6 +66,16 @@ export default {
|
||||
child: null
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
otherParentDisplay() {
|
||||
if (!this.child?.otherParent) {
|
||||
return this.$t('falukant.family.children.otherParentUnknown');
|
||||
}
|
||||
const o = this.child.otherParent;
|
||||
const title = this.$t(`falukant.titles.${o.gender}.${o.nobleTitle}`);
|
||||
return `${title} ${o.firstName}`.trim();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open(child) {
|
||||
this.child = child;
|
||||
|
||||
Reference in New Issue
Block a user