From 017da9780a26580f68ee08da289ddeb9cb02ef5a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 30 Nov 2017 17:25:14 -0500 Subject: [PATCH] LP#626157 Ang2 experiments Signed-off-by: Bill Erickson --- Open-ILS/webby-src/src/app/core/auth.ts | 2 +- Open-ILS/webby-src/src/app/core/org.ts | 3 --- Open-ILS/webby-src/src/app/core/store.ts | 1 - .../src/app/staff/admin/workstation/workstations.component.ts | 5 ++--- Open-ILS/webby-src/src/app/staff/resolver.service.ts | 2 +- Open-ILS/webby-src/src/app/staff/splash.component.ts | 2 -- Open-ILS/webby-src/src/app/staff/staff.component.ts | 2 +- 7 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Open-ILS/webby-src/src/app/core/auth.ts b/Open-ILS/webby-src/src/app/core/auth.ts index 07668fa48e..b544ae9fbd 100644 --- a/Open-ILS/webby-src/src/app/core/auth.ts +++ b/Open-ILS/webby-src/src/app/core/auth.ts @@ -220,7 +220,7 @@ export class EgAuthService { this.net.request( 'open-ils.auth', 'open-ils.auth.session.delete', this.token()) - .subscribe(x => console.log('logged out')) + .subscribe(x => console.debug('logged out')) } } diff --git a/Open-ILS/webby-src/src/app/core/org.ts b/Open-ILS/webby-src/src/app/core/org.ts index cad7930e96..236a368772 100644 --- a/Open-ILS/webby-src/src/app/core/org.ts +++ b/Open-ILS/webby-src/src/app/core/org.ts @@ -114,8 +114,6 @@ export class EgOrgService { * various shapes, then returns an "all done" promise. */ fetchOrgs(): Promise { - - console.log('fetching..'); return this.pcrud.search('aou', {parent_ou : null}, {flesh : -1, flesh_fields : {aou : ['children', 'ou_type']}}, {anonymous : true} @@ -123,7 +121,6 @@ export class EgOrgService { // ingest tree, etc. this.orgTree = tree; this.absorbTree(); - console.log('TREE FETCHED: ' + tree); }); } diff --git a/Open-ILS/webby-src/src/app/core/store.ts b/Open-ILS/webby-src/src/app/core/store.ts index f508f551e5..e1a879b390 100644 --- a/Open-ILS/webby-src/src/app/core/store.ts +++ b/Open-ILS/webby-src/src/app/core/store.ts @@ -61,7 +61,6 @@ export class EgStoreService { setLoginSessionItem(key: string, val: any, isJson?:Boolean): void { if (!isJson) val = JSON.stringify(val); - console.log(`storing ses item ${key} : ${val}`); this.cookieService.put(key, val, {path : this.loginSessionBasePath}); } diff --git a/Open-ILS/webby-src/src/app/staff/admin/workstation/workstations.component.ts b/Open-ILS/webby-src/src/app/staff/admin/workstation/workstations.component.ts index 8508e2b5c0..7467124075 100644 --- a/Open-ILS/webby-src/src/app/staff/admin/workstation/workstations.component.ts +++ b/Open-ILS/webby-src/src/app/staff/admin/workstation/workstations.component.ts @@ -35,7 +35,6 @@ export class EgWorkstationsComponent implements OnInit { } orgOnChange = (org: EgIdlObject): void => { - console.log('org changed to ' + org.shortname()); this.newOwner = org; } @@ -74,8 +73,8 @@ export class EgWorkstationsComponent implements OnInit { } registerWorkstation(): void { - console.log(this.newOwner); - console.log('registering ' + this.newName + ' : ' + this.newOwner.shortname()); + console.log(`Registering new workstation ` + + `"${this.newName}" at ${this.newOwner.shortname()}`); } } diff --git a/Open-ILS/webby-src/src/app/staff/resolver.service.ts b/Open-ILS/webby-src/src/app/staff/resolver.service.ts index 4c7fdf51a0..a811ff931a 100644 --- a/Open-ILS/webby-src/src/app/staff/resolver.service.ts +++ b/Open-ILS/webby-src/src/app/staff/resolver.service.ts @@ -67,7 +67,7 @@ export class EgStaffResolver implements Resolve> { } loadStartupData(observer: Observer): Promise { - console.log('EgStaffResolver:loadStartupData()'); + console.debug('EgStaffResolver:loadStartupData()'); return Promise.resolve(); } } diff --git a/Open-ILS/webby-src/src/app/staff/splash.component.ts b/Open-ILS/webby-src/src/app/staff/splash.component.ts index 101f464a48..04d768cb98 100644 --- a/Open-ILS/webby-src/src/app/staff/splash.component.ts +++ b/Open-ILS/webby-src/src/app/staff/splash.component.ts @@ -10,8 +10,6 @@ export class EgStaffSplashComponent implements OnInit { constructor(private route: ActivatedRoute) {} ngOnInit() { - console.log('EgStaffSplashComponent:ngOnInit()'); - } } diff --git a/Open-ILS/webby-src/src/app/staff/staff.component.ts b/Open-ILS/webby-src/src/app/staff/staff.component.ts index 572e44e201..6989cd0673 100644 --- a/Open-ILS/webby-src/src/app/staff/staff.component.ts +++ b/Open-ILS/webby-src/src/app/staff/staff.component.ts @@ -31,7 +31,7 @@ export class EgStaffComponent implements OnInit { // Redirect to the login page on any auth timeout events. this.net.authExpired$.subscribe(uhOh => { - console.log('Auth session has expired. Send to login'); + console.debug('Auth session has expired. Redirecting to login'); this.auth.redirectUrl = this.router.url; this.router.navigate(['/staff/login']); }); -- 2.11.0