Fix manage communities load stuck.

This commit is contained in:
Konstantinos Triantafyllou 2022-09-08 16:44:46 +03:00
parent e56a6effd8
commit 051d0101bb
3 changed files with 8 additions and 3 deletions

View File

@ -130,12 +130,15 @@ export class AppComponent implements OnInit {
}
}));
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
this.user = user;
if (this.user) {
if (user) {
this.user = user;
localStorage.setItem('user_id', this.user.id);
localStorage.setItem('mining_backend_address', this.properties.miningBackendURL);
localStorage.setItem('isCommunityManager', Session.isCommunityCurator(this.user) + '');
this.buildMenu();
} else if(this.user) {
this.user = user;
this.buildMenu();
}
}));
}

@ -1 +1 @@
Subproject commit 561c15b8cd52f45ab6d3aa1d125ef69478a81038
Subproject commit fa919431d3be63fb4045d47083b3ba7cd6414e03

View File

@ -172,6 +172,8 @@ export class ManageCommunitiesComponent implements OnInit, OnDestroy {
})
this.loading = false;
}));
} else {
this.loading = false;
}
}));
}