From f6a63d53e52ece1132dd13d1df7b7744492b2086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 19 Jun 2020 12:31:40 +0200 Subject: [PATCH] MOBILE-3401 login: Do not unload site if view not destroyed --- src/core/login/pages/credentials/credentials.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/core/login/pages/credentials/credentials.ts b/src/core/login/pages/credentials/credentials.ts index 2702200bd..e614d1b8b 100644 --- a/src/core/login/pages/credentials/credentials.ts +++ b/src/core/login/pages/credentials/credentials.ts @@ -93,16 +93,9 @@ export class CoreLoginCredentialsPage { } /** - * View enter. + * View destroyed. */ - ionViewDidEnter(): void { - this.viewLeft = false; - } - - /** - * View left. - */ - ionViewDidLeave(): void { + ionViewWillUnload(): void { this.viewLeft = true; this.eventsProvider.trigger(CoreEventsProvider.LOGIN_SITE_UNCHECKED, { config: this.siteConfig }, this.siteId); }