From bbb28f1f560594ad8c21382c6e1e5875bb6bfc4d Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 8 Apr 2022 11:08:34 -0400 Subject: [PATCH] LP1952931 Disable try run by default; focus input on load Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts index 0ebd84f155..e97ca1cdc0 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/asn/receive.component.ts @@ -27,7 +27,7 @@ export class AsnReceiveComponent implements OnInit { barcode = ''; receiving = false; - dryRun = true; + dryRun = false; receiveOnScan = false; notFound = false; findingContainer = false; @@ -64,6 +64,8 @@ export class AsnReceiveComponent implements OnInit { this.gridDataSource.getRows = (pager: Pager, sort: any[]) => { return from(this.entries.map(e => this.gridifyEntry(e))); }; + + setTimeout(() => this.focusInput()); } gridifyEntry(entry: IdlObject): any { @@ -121,12 +123,16 @@ export class AsnReceiveComponent implements OnInit { this.loadingContainer = false; } - const node = document.getElementById('barcode-search-input'); - (node as HTMLInputElement).select(); + this.focusInput(); } ); } + focusInput() { + const node = document.getElementById('barcode-search-input'); + (node as HTMLInputElement).select(); + } + loadContainer(): Promise { if (!this.container) { this.loadingContainer = false; -- 2.11.0