From 82288d45b6c55196534c2ebf4839ac37b1921d8f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 21 Jul 2021 17:39:59 -0400 Subject: [PATCH] LP1936233 Item status list view Signed-off-by: Bill Erickson --- .../src/eg2/src/app/staff/cat/item/item.service.ts | 5 + .../src/app/staff/cat/item/status.component.html | 27 ++--- .../eg2/src/app/staff/cat/item/status.component.ts | 119 +++++++++++++++++---- 3 files changed, 119 insertions(+), 32 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/cat/item/item.service.ts b/Open-ILS/src/eg2/src/app/staff/cat/item/item.service.ts index 1b1700bacb..ee879f1333 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/item/item.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/item/item.service.ts @@ -3,7 +3,12 @@ import {IdlObject} from '@eg/core/idl.service'; @Injectable() export class ItemStatusService { + // These must persist route changes. scannedItems: IdlObject[] = []; + + // If true, we've loaded the search/list UI's copies from its ID list + // Avoid re-loading them. + preloadItemsLoaded = false; } diff --git a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html index 463604ecb2..0b184e5fb7 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.html @@ -34,15 +34,20 @@ + (click)="getItemFromBarcodeInput()" i18n>Submit + + +