mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Merge pull request #1278 from Alfresco/dev-valbano-1072
#1072 - reset user details when the user is not logged in
This commit is contained in:
@@ -63,7 +63,6 @@ export class UserInfoComponent implements OnInit {
|
|||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-alfresco-userinfo', 'node_modules/ng2-alfresco-userinfo/src');
|
translate.addTranslationFolder('ng2-alfresco-userinfo', 'node_modules/ng2-alfresco-userinfo/src');
|
||||||
}
|
}
|
||||||
|
|
||||||
authService.loginSubject.subscribe((response) => {
|
authService.loginSubject.subscribe((response) => {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
});
|
});
|
||||||
@@ -90,6 +89,9 @@ export class UserInfoComponent implements OnInit {
|
|||||||
this.getEcmAvatar();
|
this.getEcmAvatar();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
this.ecmUser = null;
|
||||||
|
this.ecmUserImage = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,6 +102,9 @@ export class UserInfoComponent implements OnInit {
|
|||||||
this.bpmUser = <BpmUserModel> res;
|
this.bpmUser = <BpmUserModel> res;
|
||||||
});
|
});
|
||||||
this.bpmUserImage = this.bpmUserService.getCurrentUserProfileImage();
|
this.bpmUserImage = this.bpmUserService.getCurrentUserProfileImage();
|
||||||
|
} else {
|
||||||
|
this.bpmUser = null;
|
||||||
|
this.bpmUserImage = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user