From ec73243d60957c8d50b4c8a5b6d41a7f07c5f63e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 21 Jun 2021 14:18:44 -0400 Subject: [PATCH] LPXXX Item Status Angular WIP Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts index 38f3e1c378..65b8a64a1c 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts @@ -108,8 +108,13 @@ export class ItemStatusComponent implements OnInit, AfterViewInit { this.noSuchItem = true; } else { this.itemBarcode = null; - this.selectInput(); - return this.getItemById(res.id); + + if (this.tab == 'list') { + this.selectInput(); + return this.getItemById(res.id); + } else { + this.router.navigate([`/staff/cat/item/${res.id}/${this.tab}`]); + } } }); } @@ -143,7 +148,7 @@ export class ItemStatusComponent implements OnInit, AfterViewInit { } }; - return this.pcrud.retrieve('acp', this.itemId, flesh) + return this.pcrud.retrieve('acp', id, flesh) .toPromise().then(item => { this.item = item; this.itemId = item.id(); -- 2.11.0