Signed-off-by: Bill Erickson <berickxx@gmail.com>
</div>
-->
+<div *ngIf="notFound" class="row m-2 mt-5">
+ <div class="col-lg-6 offset-lg-3">
+ <div class="alert alert-warning" i18n>
+ No container found with barcode {{barcode}}.
+ </div>
+ </div>
+</div>
+
<div *ngIf="container" class="mt-3 mb-3 p-1 shadow-sm common-form striped-odd">
<div class="row">
<div class="col-lg-2">
receiving = false;
dryRun = true;
receiveOnScan = false;
+ notFound = false;
// Technically possible for one container code to match across providers.
container: IdlObject;
}
findContainer() {
+ this.notFound = false;
this.receiving = false;
this.container = null;
this.containers = [];
if (this.receiveOnScan) {
this.receiveAllItems();
}
+ } else if (this.containers.length === 0) {
+ this.notFound = true;
}
const node = document.getElementById('barcode-search-input');