Merge pull request #3505 from NoelDeMartin/MOBILE-4081
MOBILE-4081 login: Change get started urlmain
commit
e8d7929c60
|
@ -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>`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue