mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix userinfo on mobile devices and small refactoring name scss method (#2558)
This commit is contained in:
@@ -59,9 +59,6 @@ export class UserInfoComponent implements OnInit {
|
||||
constructor(private ecmUserService: EcmUserService,
|
||||
private bpmUserService: BpmUserService,
|
||||
private authService: AlfrescoAuthenticationService) {
|
||||
authService.onLogin.subscribe((response) => {
|
||||
this.getUserInfo();
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -69,15 +66,15 @@ export class UserInfoComponent implements OnInit {
|
||||
}
|
||||
|
||||
getUserInfo() {
|
||||
this.getEcmUserInfo();
|
||||
this.getBpmUserInfo();
|
||||
this.loadEcmUserInfo();
|
||||
this.loadBpmUserInfo();
|
||||
}
|
||||
|
||||
isLoggedIn() {
|
||||
return this.authService.isLoggedIn();
|
||||
}
|
||||
|
||||
getEcmUserInfo(): void {
|
||||
loadEcmUserInfo(): void {
|
||||
if (this.authService.isEcmLoggedIn()) {
|
||||
this.ecmUserService.getCurrentUserInfo()
|
||||
.subscribe((res) => {
|
||||
@@ -91,7 +88,7 @@ export class UserInfoComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
getBpmUserInfo(): void {
|
||||
loadBpmUserInfo(): void {
|
||||
if (this.authService.isBpmLoggedIn()) {
|
||||
this.bpmUserService.getCurrentUserInfo()
|
||||
.subscribe((res) => {
|
||||
|
Reference in New Issue
Block a user