Added tests for user-info component

This commit is contained in:
Vito Albano
2016-09-30 00:54:23 +01:00
parent d946532f14
commit 336ffe75d8
8 changed files with 452 additions and 31 deletions

View File

@@ -37,7 +37,7 @@ export class BpmUserService {
* @param userName - the user name
*/
getCurrentUserInfo(): Observable<BpmUserModel> {
if ( this.authService.getAlfrescoApi().bpmAuth.isLoggedIn() ) {
if ( this.authService.isBpmLoggedIn() ) {
return Observable.fromPromise(this.callApiGetProfile())
.map(
(data) => <BpmUserModel> data
@@ -47,7 +47,7 @@ export class BpmUserService {
}
getCurrentUserProfileImage(): any {
if ( this.authService.getAlfrescoApi().bpmAuth.isLoggedIn() ) {
if ( this.authService.isBpmLoggedIn() ) {
return Observable.fromPromise(this.callApiGetProfilePicture())
.map(
(data) => data