From 74670a270269994af9c04cc5313240e994a07fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 9 Mar 2022 16:39:51 +0100 Subject: [PATCH] MOBILE-3814 user-menu: Add loading spinner --- .../components/user-menu/user-menu.html | 102 +++++++++--------- .../components/user-menu/user-menu.ts | 3 - 2 files changed, 52 insertions(+), 53 deletions(-) diff --git a/src/core/features/mainmenu/components/user-menu/user-menu.html b/src/core/features/mainmenu/components/user-menu/user-menu.html index 3932978ae..d6e138a39 100644 --- a/src/core/features/mainmenu/components/user-menu/user-menu.html +++ b/src/core/features/mainmenu/components/user-menu/user-menu.html @@ -13,59 +13,61 @@ - - - - - -

- - -

- {{ siteUrl }} -
-
- - - -

{{ siteInfo.fullname }}

-
-
+ + + + + + +

+ + +

+ {{ siteUrl }} +
+
+ + + +

{{ siteInfo.fullname }}

+
+
- - - - - + + + + + - - - -

{{ handler.title | translate }}

-
- - - {{ handler.badgeA11yText | translate: {$a : handler.badge } }} - - - -
+ + + +

{{ handler.title | translate }}

+
+ + + {{ handler.badgeA11yText | translate: {$a : handler.badge } }} + + + +
- - - -

{{ 'core.settings.preferences' | translate }}

-
-
-
+ + + +

{{ 'core.settings.preferences' | translate }}

+
+
+
+
diff --git a/src/core/features/mainmenu/components/user-menu/user-menu.ts b/src/core/features/mainmenu/components/user-menu/user-menu.ts index 87cd958f9..c84bc642a 100644 --- a/src/core/features/mainmenu/components/user-menu/user-menu.ts +++ b/src/core/features/mainmenu/components/user-menu/user-menu.ts @@ -49,7 +49,6 @@ export class CoreMainMenuUserMenuComponent implements OnInit, OnDestroy { siteUrl?: string; handlers: CoreUserProfileHandlerData[] = []; handlersLoaded = false; - loaded = false; user?: CoreUserProfile; displaySwitchAccount = true; removeAccountOnLogout = false; @@ -68,8 +67,6 @@ export class CoreMainMenuUserMenuComponent implements OnInit, OnDestroy { this.displaySwitchAccount = !currentSite.isFeatureDisabled('NoDelegate_SwitchAccount'); this.removeAccountOnLogout = !!CoreConstants.CONFIG.removeaccountonlogout; - this.loaded = true; - this.loadSiteLogo(currentSite); // Load the handlers.