LP1904036 Avoid route dialog on noop checkin
authorBill Erickson <berickxx@gmail.com>
Fri, 19 Nov 2021 15:49:20 +0000 (10:49 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:39 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts

index c7ddd3b..61317be 100644 (file)
@@ -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())