Show couple state in basic family tree
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { APIClient } from "./ApiClient";
|
||||
import { DateValue, Member } from "./MemberApi";
|
||||
import { ServerApi } from "./ServerApi";
|
||||
|
||||
interface CoupleApiInterface {
|
||||
id: number;
|
||||
@ -103,6 +104,13 @@ export class Couple implements CoupleApiInterface {
|
||||
otherPersonID(id: number): number | undefined {
|
||||
return id === this.wife ? this.husband : this.wife;
|
||||
}
|
||||
|
||||
get stateFr(): string {
|
||||
return (
|
||||
ServerApi.Config.couples_states.find((c) => c.code === this.state)?.fr ??
|
||||
""
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export class CouplesList {
|
||||
|
Reference in New Issue
Block a user