From: Bill Erickson Date: Mon, 28 May 2018 15:19:48 +0000 (-0400) Subject: LP#1775466 stat sip config continued; sync Cataloging menu X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2dacddc4df127efe6349a792821f51b6cfd799b2;p=working%2FEvergreen.git LP#1775466 stat sip config continued; sync Cataloging menu Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/core/auth.service.ts b/Open-ILS/src/eg2/src/app/core/auth.service.ts index 4398ab252f..6c3ef9156f 100644 --- a/Open-ILS/src/eg2/src/app/core/auth.service.ts +++ b/Open-ILS/src/eg2/src/app/core/auth.service.ts @@ -216,10 +216,7 @@ export class EgAuthService { // to expire on the server. const pollTime = this.authtime() * 1000 + 5000; - console.debug('polling with timeout ' + pollTime); - this.pollTimeout = setTimeout(() => { - console.debug('poll checking for auth session...'); this.net.request( 'open-ils.auth', 'open-ils.auth.session.retrieve', @@ -230,10 +227,7 @@ export class EgAuthService { // EgNetService intercepts NO_SESSION events. // If the promise resolves, the session is valid. ).subscribe( - user => { - console.debug('auth poll returned: ' + user); - this.sessionPoll(); - }, + user => this.sessionPoll(), err => console.warn('auth poll error: ' + err) ); @@ -279,10 +273,12 @@ export class EgAuthService { deleteSession(): void { if (this.token()) { + // note we have to subscribe to the net.request or it will + // not fire -- observables only run when subscribed to. this.net.request( 'open-ils.auth', 'open-ils.auth.session.delete', this.token()) - .subscribe(x => console.debug('logged out')); + .subscribe(x => {}); } } diff --git a/Open-ILS/src/eg2/src/app/core/pcrud.service.ts b/Open-ILS/src/eg2/src/app/core/pcrud.service.ts index 66c4fa88f8..759d81ee30 100644 --- a/Open-ILS/src/eg2/src/app/core/pcrud.service.ts +++ b/Open-ILS/src/eg2/src/app/core/pcrud.service.ts @@ -189,7 +189,7 @@ export class EgPcrudContext { private sendRequest(method: string, params: any[]): Observable { - this.log(`sendRequest(${method})`); + // this.log(`sendRequest(${method})`); return this.net.requestCompiled( new EgNetRequest( diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html index 8627ff6ad7..fd301a45dc 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html @@ -43,11 +43,15 @@ class="material-icons mat-icon-in-button">keyboard_arrow_right +
- + + + +