LP1904036 Avoid route dialog on noop checkin
authorBill Erickson <berickxx@gmail.com>
Fri, 19 Nov 2021 15:49:20 +0000 (10:49 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 6 Oct 2022 17:05:39 +0000 (13:05 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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())