Skip to content

Commit f6a63d5

Browse files
committed
MOBILE-3401 login: Do not unload site if view not destroyed
1 parent 247e31a commit f6a63d5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/core/login/pages/credentials/credentials.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,9 @@ export class CoreLoginCredentialsPage {
9393
}
9494

9595
/**
96-
* View enter.
96+
* View destroyed.
9797
*/
98-
ionViewDidEnter(): void {
99-
this.viewLeft = false;
100-
}
101-
102-
/**
103-
* View left.
104-
*/
105-
ionViewDidLeave(): void {
98+
ionViewWillUnload(): void {
10699
this.viewLeft = true;
107100
this.eventsProvider.trigger(CoreEventsProvider.LOGIN_SITE_UNCHECKED, { config: this.siteConfig }, this.siteId);
108101
}

0 commit comments

Comments
 (0)