refactor core

This commit is contained in:
Eugenio Romano
2021-08-15 20:07:50 +02:00
parent b8e7e79b26
commit b04308deaa
27 changed files with 160 additions and 93 deletions

View File

@@ -48,7 +48,9 @@ export class AuthenticationService {
*/
onLogout: ReplaySubject<any> = new ReplaySubject<any>(1);
private profileApi: UserProfileApi;
get profileApi(): UserProfileApi {
return new UserProfileApi(this.alfrescoApi.getInstance());
}
constructor(
private appConfig: AppConfigService,
@@ -58,7 +60,6 @@ export class AuthenticationService {
private logService: LogService) {
this.alfrescoApi.alfrescoApiInitialized.subscribe(() => {
this.alfrescoApi.getInstance().reply('logged-in', () => {
this.profileApi = new UserProfileApi(alfrescoApi.getInstance());
this.onLogin.next();
});
});