MOBILE-4362 login: Hide authinstructions when not needed

main
Dani Palou 2023-10-31 11:14:03 +01:00
parent d59b175314
commit b9e9dade0b
2 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,6 @@ export class CoreLoginCredentialsPage implements OnInit, OnDestroy {
this.siteName = this.siteConfig.sitename;
this.logoUrl = CoreLoginHelper.getLogoUrl(this.siteConfig);
this.authInstructions = this.siteConfig.authinstructions || Translate.instant('core.login.loginsteps');
this.showScanQR = await CoreLoginHelper.displayQRInCredentialsScreen(this.siteConfig.tool_mobile_qrcodetype);
const disabledFeatures = CoreLoginHelper.getDisabledFeatures(this.siteConfig);
@ -204,6 +203,8 @@ export class CoreLoginCredentialsPage implements OnInit, OnDestroy {
!!this.supportConfig?.canContactSupport(),
this.showForgottenPassword,
);
this.authInstructions = this.siteConfig.authinstructions ||
(this.canSignup ? Translate.instant('core.login.loginsteps') : '');
if (!this.eventThrown && !this.viewLeft) {
this.eventThrown = true;