return this.showPrecatAlert().then(_ => result);
case 'ROUTE_ITEM':
+ this.audio.play(result.hold ?
+ 'info.checkin.transit.hold' : 'info.checkin.transit');
this.components.routeDialog.checkin = result;
return this.components.routeDialog.open().toPromise()
.then(_ => result);
import {DialogComponent} from '@eg/share/dialog/dialog.component';
import {CheckinResult} from './circ.service';
import {ServerStoreService} from '@eg/core/server-store.service';
-import {AudioService} from '@eg/share/util/audio.service';
import {PrintService} from '@eg/share/print/print.service';
/** Route Item Dialog */
private pcrud: PcrudService,
private org: OrgService,
private circ: CircService,
- private audio: AudioService,
private printer: PrintService,
private serverStore: ServerStoreService) {
super(modal);
});
}
- this.audio.play(hold ?
- 'info.checkin.transit.hold' : 'info.checkin.transit');
-
if (this.checkin.params.auto_print_hold_transits
|| this.circ.suppressCheckinPopups) {
// Print and exit.