Merge pull request #3505 from NoelDeMartin/MOBILE-4081

MOBILE-4081 login: Change get started url
main
Dani Palou 2022-12-12 12:28:14 +01:00 committed by GitHub
commit e8d7929c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -16,7 +16,7 @@ import { Component } from '@angular/core';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { ModalController, Translate } from '@singletons'; import { ModalController, Translate } from '@singletons';
import { CoreLoginHelperProvider } from '@features/login/services/login-helper'; import { CoreLoginHelperProvider, GET_STARTED_URL } from '@features/login/services/login-helper';
/** /**
* Component that displays help to connect to a site. * Component that displays help to connect to a site.
@ -34,12 +34,12 @@ export class CoreLoginSiteHelpComponent {
canScanQR: boolean; canScanQR: boolean;
constructor() { constructor() {
const getStartedTitle = Translate.instant('core.login.faqsetupsitelinktitle');
this.canScanQR = CoreUtils.canScanQR(); this.canScanQR = CoreUtils.canScanQR();
this.urlImageHtml = CoreLoginHelperProvider.FAQ_URL_IMAGE_HTML; this.urlImageHtml = CoreLoginHelperProvider.FAQ_URL_IMAGE_HTML;
this.qrCodeImageHtml = CoreLoginHelperProvider.FAQ_QRCODE_IMAGE_HTML; this.qrCodeImageHtml = CoreLoginHelperProvider.FAQ_QRCODE_IMAGE_HTML;
this.setupLinkHtml = '<a href="https://moodle.com/getstarted/" title="' + this.setupLinkHtml = `<a href="${GET_STARTED_URL}" title="${getStartedTitle}">${GET_STARTED_URL}</a>`;
Translate.instant('core.login.faqsetupsitelinktitle') + '">https://moodle.com/getstarted/</a>';
} }
/** /**

View File

@ -16,7 +16,7 @@ import { Component } from '@angular/core';
import { CoreConfig } from '@services/config'; import { CoreConfig } from '@services/config';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreLoginHelperProvider } from '@features/login/services/login-helper'; import { CoreLoginHelperProvider, GET_STARTED_URL } from '@features/login/services/login-helper';
import { ModalController } from '@singletons'; import { ModalController } from '@singletons';
/** /**
@ -79,7 +79,7 @@ export class CoreLoginSiteOnboardingComponent {
this.saveOnboardingDone(); this.saveOnboardingDone();
CoreUtils.openInBrowser('https://moodle.com/getstarted/', { showBrowserWarning: false }); CoreUtils.openInBrowser(GET_STARTED_URL, { showBrowserWarning: false });
ModalController.dismiss(); ModalController.dismiss();
} }

View File

@ -43,6 +43,8 @@ import { CoreLoginError } from '@classes/errors/loginerror';
const PASSWORD_RESETS_CONFIG_KEY = 'password-resets'; const PASSWORD_RESETS_CONFIG_KEY = 'password-resets';
export const GET_STARTED_URL = 'https://moodle.com';
/** /**
* Helper provider that provides some common features regarding authentication. * Helper provider that provides some common features regarding authentication.
*/ */