LP#626157 Ang2 experiments
authorBill Erickson <berickxx@gmail.com>
Thu, 30 Nov 2017 22:25:14 +0000 (17:25 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 11 Dec 2017 17:39:51 +0000 (12:39 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/webby-src/src/app/core/auth.ts
Open-ILS/webby-src/src/app/core/org.ts
Open-ILS/webby-src/src/app/core/store.ts
Open-ILS/webby-src/src/app/staff/admin/workstation/workstations.component.ts
Open-ILS/webby-src/src/app/staff/resolver.service.ts
Open-ILS/webby-src/src/app/staff/splash.component.ts
Open-ILS/webby-src/src/app/staff/staff.component.ts

index 07668fa..b544ae9 100644 (file)
@@ -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'))
         }
     }
 
index cad7930..236a368 100644 (file)
@@ -114,8 +114,6 @@ export class EgOrgService {
      * various shapes, then returns an "all done" promise.
      */
     fetchOrgs(): Promise<void> {
-        
-        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);
         });
     }
 
index f508f55..e1a879b 100644 (file)
@@ -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});
     }
 
index 8508e2b..7467124 100644 (file)
@@ -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()}`);
     }
 }
 
index 4c7fdf5..a811ff9 100644 (file)
@@ -67,7 +67,7 @@ export class EgStaffResolver implements Resolve<Observable<any>> {
     }
 
     loadStartupData(observer: Observer<any>): Promise<void> {
-        console.log('EgStaffResolver:loadStartupData()');
+        console.debug('EgStaffResolver:loadStartupData()');
         return Promise.resolve();
     }
 }
index 101f464..04d768c 100644 (file)
@@ -10,8 +10,6 @@ export class EgStaffSplashComponent implements OnInit {
     constructor(private route: ActivatedRoute) {}
 
     ngOnInit() {
-      console.log('EgStaffSplashComponent:ngOnInit()');
-
     }
 }
 
index 572e44e..6989cd0 100644 (file)
@@ -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']);
         });