From 1ac52d1d6845ad1726beab706378955338c9a1b2 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 6 Feb 2026 22:09:53 -0800 Subject: [PATCH] info links --- .../document-attributes.component.html | 1 + .../document-attributes.component.ts | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src-ui/src/app/components/manage/document-attributes/document-attributes.component.html b/src-ui/src/app/components/manage/document-attributes/document-attributes.component.html index da035dc66..92d497566 100644 --- a/src-ui/src/app/components/manage/document-attributes/document-attributes.component.html +++ b/src-ui/src/app/components/manage/document-attributes/document-attributes.component.html @@ -3,6 +3,7 @@ i18n-title info="Manage tags, correspondents, document types, storage paths, and custom fields." i18n-info + [infoLink]="activeInfoLink" [subTitle]="activeTabLabel" [loading]="activeHeaderLoading" > diff --git a/src-ui/src/app/components/manage/document-attributes/document-attributes.component.ts b/src-ui/src/app/components/manage/document-attributes/document-attributes.component.ts index 38376be77..77bae777d 100644 --- a/src-ui/src/app/components/manage/document-attributes/document-attributes.component.ts +++ b/src-ui/src/app/components/manage/document-attributes/document-attributes.component.ts @@ -47,6 +47,7 @@ interface DocumentAttributesSection { path: string label: string icon: string + infoLink?: string permissionType: PermissionType kind: DocumentAttributesSectionKind component: Type @@ -81,6 +82,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy { path: 'tags', label: $localize`Tags`, icon: 'tags', + infoLink: 'usage/#terms-and-definitions', permissionType: PermissionType.Tag, kind: 'attributeList', component: TagListComponent, @@ -90,6 +92,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy { path: 'correspondents', label: $localize`Correspondents`, icon: 'person', + infoLink: 'usage/#terms-and-definitions', permissionType: PermissionType.Correspondent, kind: 'attributeList', component: CorrespondentListComponent, @@ -99,6 +102,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy { path: 'documenttypes', label: $localize`Document types`, icon: 'hash', + infoLink: 'usage/#terms-and-definitions', permissionType: PermissionType.DocumentType, kind: 'attributeList', component: DocumentTypeListComponent, @@ -108,6 +112,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy { path: 'storagepaths', label: $localize`Storage paths`, icon: 'folder', + infoLink: 'usage/#terms-and-definitions', permissionType: PermissionType.StoragePath, kind: 'attributeList', component: StoragePathListComponent, @@ -117,6 +122,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy { path: 'customfields', label: $localize`Custom fields`, icon: 'ui-radios', + infoLink: 'usage/#custom-fields', permissionType: PermissionType.CustomField, kind: 'customFields', component: CustomFieldsComponent, @@ -166,6 +172,10 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy { return this.activeSection?.label ?? '' } + get activeInfoLink(): string { + return this.activeSection?.infoLink ?? null + } + get activeHeaderLoading(): boolean { return ( this.activeAttributeList?.loading ??