user
This commit is contained in:
committed by
Jacob Overgaard
parent
ab8e00fe61
commit
0adebd201f
@@ -45,7 +45,11 @@ export class UmbUserWorkspaceContext
|
||||
There might be a less manual way to do this.
|
||||
*/
|
||||
onUserStoreChanges(user: EntityType | undefined) {
|
||||
if (!user) return;
|
||||
if (!user) {
|
||||
//TODO: This solution is alright for now. But reconsider when we introduce signal-r
|
||||
history.pushState(null, '', 'section/user-management');
|
||||
return;
|
||||
}
|
||||
this.#currentData.update({ state: user.state, avatarUrls: user.avatarUrls });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user