.then(patron => this.patronSummary = new PatronSummary(patron))
.then(_ => this.patrons.getVitalStats(this.patronSummary.patron))
.then(stats => this.patronSummary.stats = stats)
- .then(_ => this.startPatronTimer());
+ .then(_ => this.resetPatronTimeout());
}
resetPatronTimeout() {
+ console.debug('Resetting patron timeout=' + this.patronIdleTimeout);
if (this.patronTimeoutId) {
clearTimeout(this.patronTimeoutId);
}
}
startPatronTimer() {
- console.debug('Starting patron timeout counter', this.patronIdleTimeout);
-
this.patronTimeoutId = setTimeout(
() => this.showPatronLogoutWarning(),
this.patronIdleTimeout * 1000