diff --git a/docs/api.md b/docs/api.md index 2ff8f077d..82244936f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -8,20 +8,22 @@ most of the available filters and ordering fields. The API provides the following main endpoints: +- `/api/consumption_templates/`: Full CRUD support. +- `/api/correspondents/`: Full CRUD support. +- `/api/custom_fields/`: Full CRUD support. - `/api/documents/`: Full CRUD support, except POSTing new documents. See below. -- `/api/correspondents/`: Full CRUD support. - `/api/document_types/`: Full CRUD support. +- `/api/groups/`: Full CRUD support. - `/api/logs/`: Read-Only. -- `/api/tags/`: Full CRUD support. -- `/api/tasks/`: Read-only. - `/api/mail_accounts/`: Full CRUD support. - `/api/mail_rules/`: Full CRUD support. -- `/api/users/`: Full CRUD support. -- `/api/groups/`: Full CRUD support. -- `/api/share_links/`: Full CRUD support. -- `/api/custom_fields/`: Full CRUD support. - `/api/profile/`: GET, PATCH +- `/api/share_links/`: Full CRUD support. +- `/api/storage_paths/`: Full CRUD support. +- `/api/tags/`: Full CRUD support. +- `/api/tasks/`: Read-only. +- `/api/users/`: Full CRUD support. All of these endpoints except for the logging endpoint allow you to fetch (and edit and delete where appropriate) individual objects by diff --git a/src-ui/src/app/components/admin/logs/logs.component.ts b/src-ui/src/app/components/admin/logs/logs.component.ts index 2ca259218..0c1231a48 100644 --- a/src-ui/src/app/components/admin/logs/logs.component.ts +++ b/src-ui/src/app/components/admin/logs/logs.component.ts @@ -54,6 +54,7 @@ export class LogsComponent implements OnInit, AfterViewChecked, OnDestroy { ngOnDestroy(): void { this.unsubscribeNotifier.next(true) this.unsubscribeNotifier.complete() + clearInterval(this.autoRefreshInterval) } reloadLogs() { diff --git a/src-ui/src/app/components/admin/tasks/tasks.component.ts b/src-ui/src/app/components/admin/tasks/tasks.component.ts index 5a1949e77..b6b5ec590 100644 --- a/src-ui/src/app/components/admin/tasks/tasks.component.ts +++ b/src-ui/src/app/components/admin/tasks/tasks.component.ts @@ -46,6 +46,7 @@ export class TasksComponent ngOnDestroy() { this.tasksService.cancelPending() + clearInterval(this.autoRefreshInterval) } dismissTask(task: PaperlessTask) { diff --git a/src-ui/src/app/components/common/input/select/select.component.html b/src-ui/src/app/components/common/input/select/select.component.html index bdffbcc12..3a10b0019 100644 --- a/src-ui/src/app/components/common/input/select/select.component.html +++ b/src-ui/src/app/components/common/input/select/select.component.html @@ -34,6 +34,9 @@ (focus)="clearLastSearchTerm()" (clear)="clearLastSearchTerm()" (blur)="onBlur()"> + + {{item.name}} + @if (allowCreateNew) {