A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
focus text filter input automatically
jonaswinkler1fbd3935ea3a
diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.htmlindex 1fbe53d67..c61f36c3f 100644--- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html+++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html@@ -8,7 +8,7 @@<button *ngFor="let t of textFilterTargets" ngbDropdownItem [class.active]="textFilterTarget == t.id" (click)="changeTextFilterTarget(t.id)">{{t.name}}</button></div></div>- <input class="form-control form-control-sm" type="text" [(ngModel)]="textFilter" [readonly]="textFilterTarget == 'fulltext-morelike'">+ <input #textFilterInput class="form-control form-control-sm" type="text" [(ngModel)]="textFilter" [readonly]="textFilterTarget == 'fulltext-morelike'"></div></div></div>diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.tsindex a4463a64b..777c92e07 100644--- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts+++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts@@ -1,4 +1,4 @@-import { Component, EventEmitter, Input, Output, OnInit, OnDestroy } from '@angular/core';+import { Component, EventEmitter, Input, Output, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';import { PaperlessTag } from 'src/app/data/paperless-tag';import { PaperlessCorrespondent } from 'src/app/data/paperless-correspondent';import { PaperlessDocumentType } from 'src/app/data/paperless-document-type';@@ -72,6 +72,9 @@ export class FilterEditorComponent implements OnInit, OnDestroy {private documentService: DocumentService) { }+ @ViewChild("textFilterInput")+ textFilterInput: ElementRef+tags: PaperlessTag[] = []correspondents: PaperlessCorrespondent[] = []documentTypes: PaperlessDocumentType[] = []@@ -330,6 +333,7 @@ export class FilterEditorComponent implements OnInit, OnDestroy {this._textFilter = ""}this.textFilterTarget = target+ this.textFilterInput.nativeElement.focus()this.updateRules()}}