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 { 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.
@ -34,12 +34,12 @@ export class CoreLoginSiteHelpComponent {
canScanQR: boolean;
constructor() {
const getStartedTitle = Translate.instant('core.login.faqsetupsitelinktitle');
this.canScanQR = CoreUtils.canScanQR();
this.urlImageHtml = CoreLoginHelperProvider.FAQ_URL_IMAGE_HTML;
this.qrCodeImageHtml = CoreLoginHelperProvider.FAQ_QRCODE_IMAGE_HTML;
this.setupLinkHtml = '<a href="https://moodle.com/getstarted/" title="' +
Translate.instant('core.login.faqsetupsitelinktitle') + '">https://moodle.com/getstarted/</a>';
this.setupLinkHtml = `<a href="${GET_STARTED_URL}" title="${getStartedTitle}">${GET_STARTED_URL}</a>`;
}
/**

View File

@ -16,7 +16,7 @@ import { Component } from '@angular/core';
import { CoreConfig } from '@services/config';
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';
/**
@ -79,7 +79,7 @@ export class CoreLoginSiteOnboardingComponent {
this.saveOnboardingDone();
CoreUtils.openInBrowser('https://moodle.com/getstarted/', { showBrowserWarning: false });
CoreUtils.openInBrowser(GET_STARTED_URL, { showBrowserWarning: false });
ModalController.dismiss();
}

View File

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