barcode = '';
receiving = false;
- dryRun = true;
+ dryRun = false;
receiveOnScan = false;
notFound = false;
findingContainer = false;
this.gridDataSource.getRows = (pager: Pager, sort: any[]) => {
return from(this.entries.map(e => this.gridifyEntry(e)));
};
+
+ setTimeout(() => this.focusInput());
}
gridifyEntry(entry: IdlObject): any {
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<any> {
if (!this.container) {
this.loadingContainer = false;