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'))
}
}
* 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}
// ingest tree, etc.
this.orgTree = tree;
this.absorbTree();
- console.log('TREE FETCHED: ' + tree);
});
}
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});
}
}
orgOnChange = (org: EgIdlObject): void => {
- console.log('org changed to ' + org.shortname());
this.newOwner = org;
}
}
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()}`);
}
}
}
loadStartupData(observer: Observer<any>): Promise<void> {
- console.log('EgStaffResolver:loadStartupData()');
+ console.debug('EgStaffResolver:loadStartupData()');
return Promise.resolve();
}
}
constructor(private route: ActivatedRoute) {}
ngOnInit() {
- console.log('EgStaffSplashComponent:ngOnInit()');
-
}
}
// 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']);
});