From: Bill Erickson Date: Mon, 21 Jun 2021 18:18:44 +0000 (-0400) Subject: LPXXX Item Status Angular WIP X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ec73243d60957c8d50b4c8a5b6d41a7f07c5f63e;p=working%2FEvergreen.git LPXXX Item Status Angular WIP Signed-off-by: Bill Erickson --- 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();