From 94205791b59240c67cbc0b077440d0e0283a804d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 1 Jun 2021 11:50:43 +0200 Subject: [PATCH] MOBILE-3320 more: Add loading when logging out --- .../features/mainmenu/pages/more/more.html | 162 +++++++++--------- src/core/features/mainmenu/pages/more/more.ts | 2 + 2 files changed, 84 insertions(+), 80 deletions(-) diff --git a/src/core/features/mainmenu/pages/more/more.html b/src/core/features/mainmenu/pages/more/more.html index eeb136a71..cba182921 100644 --- a/src/core/features/mainmenu/pages/more/more.html +++ b/src/core/features/mainmenu/pages/more/more.html @@ -8,90 +8,92 @@ - - - - -

{{siteInfo.fullname}}

-

- - -

-

{{ siteUrl }}

-
-
- - - - - - - -

{{ handler.title | translate}}

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

{{item.label}}

+

{{siteInfo.fullname}}

+

+ + +

+

{{ siteUrl }}

- - + + + + + + -

{{item.label}}

+

{{ handler.title | translate}}

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

{{item.label}}

+
+
+ + + +

{{item.label}}

+
+
+
+ + + +

{{ 'core.scanqr' | translate }}

-
- - - -

{{ 'core.scanqr' | translate }}

-
-
- - - -

{{ 'core.mainmenu.website' | translate }}

-
-
- - - -

{{ 'core.mainmenu.help' | translate }}

-
-
- - - -

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

-
-
- - - -

{{ logoutLabel | translate }}

-
-
- - - - -

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

-
-
-
+ + + +

{{ 'core.mainmenu.website' | translate }}

+
+
+ + + +

{{ 'core.mainmenu.help' | translate }}

+
+
+ + + +

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

+
+
+ + + +

{{ logoutLabel | translate }}

+
+
+ + + + +

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

+
+
+ +
diff --git a/src/core/features/mainmenu/pages/more/more.ts b/src/core/features/mainmenu/pages/more/more.ts index 6eb72b24d..733c8a0aa 100644 --- a/src/core/features/mainmenu/pages/more/more.ts +++ b/src/core/features/mainmenu/pages/more/more.ts @@ -50,6 +50,7 @@ export class CoreMainMenuMorePage implements OnInit, OnDestroy { docsUrl?: string; customItems?: CoreMainMenuCustomItem[]; siteUrl?: string; + loggedOut = false; protected subscription!: Subscription; protected langObserver: CoreEventObserver; @@ -203,6 +204,7 @@ export class CoreMainMenuMorePage implements OnInit, OnDestroy { * Logout the user. */ logout(): void { + this.loggedOut = true; CoreSites.logout(); }