Merge pull request #2989 from crazyserver/MOBILE-3912

MOBILE-3912 login: Hide all need help buttons when sass var is present
main
Noel De Martin 2021-11-10 10:22:20 +01:00 committed by GitHub
commit 7ab0ee2a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}
}