diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html index 67f2f6eb8..34c337ed1 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.html @@ -1,6 +1,6 @@ @if (zones.length === 0) {

- No zones defined. Load a document preview and draw rectangles to add zones. + No zones defined.

} diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html index da05f2c4e..a796966ae 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html @@ -1,60 +1,57 @@ -
-
- -
- + +
+ + -
- -
-
-
Page
- -
of {{previewPageCount}}
+ @if (previewDocId) { + + }
- - - -
- - {{ zoom * 100 | number: '1.0-0' }}% - + + {{ documentFormatter(document) }} + +
+ @switch (searchStatus()) { + @case ('loading') { Searching... } + @case ('empty') { No matching documents. } + @case ('error') { Document search failed. } + }
-
-
- -
- -
+
+
+ + + +