Add group annotations to Attribute

This commit is contained in:
Joseph Garrone 2024-07-13 08:00:16 +02:00
parent b577cd9829
commit 9dca515a42
2 changed files with 3 additions and 1 deletions

View File

@ -591,6 +591,7 @@ export type Attribute = {
value?: string; value?: string;
values?: string[]; values?: string[];
group?: { group?: {
annotations: Record<string, string>;
html5DataAnnotations: Record<string, string>; html5DataAnnotations: Record<string, string>;
displayHeader?: string; displayHeader?: string;
name: string; name: string;

View File

@ -227,7 +227,7 @@ export function useUserProfileForm(params: UseUserProfileFormParams): ReturnType
break patch_legacy_group; break patch_legacy_group;
} }
const { group, groupDisplayHeader, groupDisplayDescription /*, groupAnnotations*/ } = attribute as Attribute & { const { group, groupDisplayHeader, groupDisplayDescription, groupAnnotations } = attribute as Attribute & {
group: string; group: string;
groupDisplayHeader?: string; groupDisplayHeader?: string;
groupDisplayDescription?: string; groupDisplayDescription?: string;
@ -250,6 +250,7 @@ export function useUserProfileForm(params: UseUserProfileFormParams): ReturnType
name: group, name: group,
displayHeader: groupDisplayHeader, displayHeader: groupDisplayHeader,
displayDescription: groupDisplayDescription, displayDescription: groupDisplayDescription,
annotations: groupAnnotations,
html5DataAnnotations: {} html5DataAnnotations: {}
}; };
} }