mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-07 23:42:46 -06:00
info links
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
@@ -47,6 +47,7 @@ interface DocumentAttributesSection {
|
||||
path: string
|
||||
label: string
|
||||
icon: string
|
||||
infoLink?: string
|
||||
permissionType: PermissionType
|
||||
kind: DocumentAttributesSectionKind
|
||||
component: Type<any>
|
||||
@@ -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 ??
|
||||
|
||||
Reference in New Issue
Block a user