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
|
i18n-title
|
||||||
info="Manage tags, correspondents, document types, storage paths, and custom fields."
|
info="Manage tags, correspondents, document types, storage paths, and custom fields."
|
||||||
i18n-info
|
i18n-info
|
||||||
|
[infoLink]="activeInfoLink"
|
||||||
[subTitle]="activeTabLabel"
|
[subTitle]="activeTabLabel"
|
||||||
[loading]="activeHeaderLoading"
|
[loading]="activeHeaderLoading"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ interface DocumentAttributesSection {
|
|||||||
path: string
|
path: string
|
||||||
label: string
|
label: string
|
||||||
icon: string
|
icon: string
|
||||||
|
infoLink?: string
|
||||||
permissionType: PermissionType
|
permissionType: PermissionType
|
||||||
kind: DocumentAttributesSectionKind
|
kind: DocumentAttributesSectionKind
|
||||||
component: Type<any>
|
component: Type<any>
|
||||||
@@ -81,6 +82,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy {
|
|||||||
path: 'tags',
|
path: 'tags',
|
||||||
label: $localize`Tags`,
|
label: $localize`Tags`,
|
||||||
icon: 'tags',
|
icon: 'tags',
|
||||||
|
infoLink: 'usage/#terms-and-definitions',
|
||||||
permissionType: PermissionType.Tag,
|
permissionType: PermissionType.Tag,
|
||||||
kind: 'attributeList',
|
kind: 'attributeList',
|
||||||
component: TagListComponent,
|
component: TagListComponent,
|
||||||
@@ -90,6 +92,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy {
|
|||||||
path: 'correspondents',
|
path: 'correspondents',
|
||||||
label: $localize`Correspondents`,
|
label: $localize`Correspondents`,
|
||||||
icon: 'person',
|
icon: 'person',
|
||||||
|
infoLink: 'usage/#terms-and-definitions',
|
||||||
permissionType: PermissionType.Correspondent,
|
permissionType: PermissionType.Correspondent,
|
||||||
kind: 'attributeList',
|
kind: 'attributeList',
|
||||||
component: CorrespondentListComponent,
|
component: CorrespondentListComponent,
|
||||||
@@ -99,6 +102,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy {
|
|||||||
path: 'documenttypes',
|
path: 'documenttypes',
|
||||||
label: $localize`Document types`,
|
label: $localize`Document types`,
|
||||||
icon: 'hash',
|
icon: 'hash',
|
||||||
|
infoLink: 'usage/#terms-and-definitions',
|
||||||
permissionType: PermissionType.DocumentType,
|
permissionType: PermissionType.DocumentType,
|
||||||
kind: 'attributeList',
|
kind: 'attributeList',
|
||||||
component: DocumentTypeListComponent,
|
component: DocumentTypeListComponent,
|
||||||
@@ -108,6 +112,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy {
|
|||||||
path: 'storagepaths',
|
path: 'storagepaths',
|
||||||
label: $localize`Storage paths`,
|
label: $localize`Storage paths`,
|
||||||
icon: 'folder',
|
icon: 'folder',
|
||||||
|
infoLink: 'usage/#terms-and-definitions',
|
||||||
permissionType: PermissionType.StoragePath,
|
permissionType: PermissionType.StoragePath,
|
||||||
kind: 'attributeList',
|
kind: 'attributeList',
|
||||||
component: StoragePathListComponent,
|
component: StoragePathListComponent,
|
||||||
@@ -117,6 +122,7 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy {
|
|||||||
path: 'customfields',
|
path: 'customfields',
|
||||||
label: $localize`Custom fields`,
|
label: $localize`Custom fields`,
|
||||||
icon: 'ui-radios',
|
icon: 'ui-radios',
|
||||||
|
infoLink: 'usage/#custom-fields',
|
||||||
permissionType: PermissionType.CustomField,
|
permissionType: PermissionType.CustomField,
|
||||||
kind: 'customFields',
|
kind: 'customFields',
|
||||||
component: CustomFieldsComponent,
|
component: CustomFieldsComponent,
|
||||||
@@ -166,6 +172,10 @@ export class DocumentAttributesComponent implements OnInit, OnDestroy {
|
|||||||
return this.activeSection?.label ?? ''
|
return this.activeSection?.label ?? ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get activeInfoLink(): string {
|
||||||
|
return this.activeSection?.infoLink ?? null
|
||||||
|
}
|
||||||
|
|
||||||
get activeHeaderLoading(): boolean {
|
get activeHeaderLoading(): boolean {
|
||||||
return (
|
return (
|
||||||
this.activeAttributeList?.loading ??
|
this.activeAttributeList?.loading ??
|
||||||
|
|||||||
Reference in New Issue
Block a user