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.spec.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts index 32a21b0c8..875566d96 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts @@ -73,8 +73,8 @@ describe('OcrTemplateEditorZoneListComponent', () => { expect( fixture.nativeElement.querySelectorAll( '[title="Combined with other zones"]' - ).length - ).toBe(2) + ) + ).toHaveLength(2) }) it('warns only for zones without a field and clears the warning when assigned', () => { 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 54a645863..788d911b9 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 @@ -190,11 +190,11 @@ of {{ previewPageCount() ?? '?' }} -
+
-
+ }
@@ -229,6 +229,7 @@ (pointerup)="onOverlayPointerUp($event)" (pointercancel)="onOverlayPointerCancel($event)" (lostpointercapture)="onOverlayPointerCancel($event)" + aria-label="Zone overlay" i18n-aria-label > @for (zone of template.zones; track $index; let i = $index) { @if (zoneDisplayRect(i); as rect) { @@ -281,9 +282,9 @@
@if (!pageLoaded()) {
-
+ Loading page... -
+
} } @else { diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html index 834af215b..086493f47 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html @@ -23,7 +23,7 @@ @if (loading() && templates().length === 0) {
  • -
    + Loading...
  • }