From b071f96453d6d9518724d942f8bbe4ca290e9d26 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 19 Nov 2021 10:49:20 -0500 Subject: [PATCH] LP1904036 Avoid route dialog on noop checkin Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts index c7ddd3bc5f..61317be65a 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts @@ -925,6 +925,12 @@ export class CircService { case 'ROUTE_ITEM': this.audio.play(result.hold ? 'info.checkin.transit.hold' : 'info.checkin.transit'); + + if (params.noop) { + console.debug("Skipping route dialog on 'noop' checkin"); + return Promise.resolve(result); + } + this.components.routeDialog.checkin = result; return this.findCopyTransit(result) .then(_ => this.components.routeDialog.open().toPromise()) -- 2.11.0