MOBILE-3912 login: Hide all need help buttons when sass var is present

main
Pau Ferrer Ocaña 2021-11-04 16:02:51 +01:00
parent 13509e6683
commit 800ff3a4d8
3 changed files with 9 additions and 7 deletions

View File

@ -15,12 +15,6 @@
}
}
@if ($core-login-hide-need-help) {
.core-login-need-help {
display: none;
}
}
.core-login-site-connect {
margin-top: 1.4rem;
}

View File

@ -33,6 +33,7 @@ import { CoreNavigator } from '@services/navigator';
import { CoreCustomURLSchemes, CoreCustomURLSchemesHandleError } from '@services/urlschemes';
import { CoreTextUtils } from '@services/utils/text';
import { CoreForms } from '@singletons/form';
import { AlertButton } from '@ionic/core';
/**
* Site (url) chooser when adding a new site.
@ -386,9 +387,10 @@ export class CoreLoginSitePage implements OnInit {
message += '<p padding><a href="' + fullUrl + '" core-link>' + url + '</a></p>';
}
const buttons = [
const buttons: AlertButton[] = [
{
text: Translate.instant('core.needhelp'),
cssClass: 'core-login-need-help',
handler: (): void => {
this.showHelp();
},

View File

@ -1149,3 +1149,9 @@ iframe {
max-width: 100%;
background-color: var(--ion-background-color);
}
@if ($core-login-hide-need-help) {
.core-login-need-help {
display: none !important;
}
}