Skip to content

Commit 8508cf6

Browse files
authored
Merge pull request #2411 from crazyserver/MOBILE-3401
MOBILE-3401 login: Enable qr instructions
2 parents 0bb0fd9 + 8e1aa94 commit 8508cf6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/core/login/pages/site-help/site-help.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class CoreLoginSiteHelpPage {
3737
protected translate: TranslateService,
3838
protected utils: CoreUtilsProvider) {
3939

40-
this.canScanQR = this.utils.canScanQR() && false; // @todo: Enable it for 3.9 release.
40+
this.canScanQR = this.utils.canScanQR();
4141
this.urlImageHtml = CoreLoginHelperProvider.FAQ_URL_IMAGE_HTML;
4242
this.qrCodeImageHtml = CoreLoginHelperProvider.FAQ_QRCODE_IMAGE_HTML;
4343
this.setupLinkHtml = '<a href="https://moodle.com/getstarted/" title="' +

src/core/login/pages/site/site.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h2 text-wrap>{{site.name}}<ng-container *ngIf="site.alias"> ({{site.alias}})</n
6060
<ng-container *ngIf="!fixedSites && showScanQR && !hasSites && !enteredSiteUrl">
6161
<div class="core-login-site-qrcode-separator">{{ 'core.login.or' | translate }}</div>
6262
<ion-item>
63-
<a ion-button block color="light" margin-top icon-start (click)="scanQR()">
63+
<a ion-button block color="light" margin-top icon-start (click)="showInstructionsAndScanQR()">
6464
<core-icon name="fa-qrcode" aria-hidden="true"></core-icon>
6565
{{ 'core.scanqr' | translate }}
6666
</a>

src/core/login/pages/site/site.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class CoreLoginSitePage {
279279
}
280280
];
281281

282-
// @TODO: Remove CoreSite.MINIMUM_MOODLE_VERSION, not used on translations since 3.8.3.
282+
// @TODO: Remove CoreSite.MINIMUM_MOODLE_VERSION, not used on translations since 3.9.0.
283283
this.domUtils.showAlertWithOptions({
284284
title: this.translate.instant('core.cannotconnect', {$a: CoreSite.MINIMUM_MOODLE_VERSION}),
285285
message,
@@ -383,8 +383,6 @@ export class CoreLoginSitePage {
383383

384384
/**
385385
* Show instructions and scan QR code.
386-
*
387-
* @todo Use it in 3.9 release instead of scanQR.
388386
*/
389387
showInstructionsAndScanQR(): void {
390388
// Show some instructions first.

0 commit comments

Comments
 (0)