forked from EVOgeek/Vmeda.Online
		
	MOBILE-3401 login: Enable qr instructions
This commit is contained in:
		
							parent
							
								
									7b3cffa07f
								
							
						
					
					
						commit
						8e1aa942fd
					
				| @ -37,7 +37,7 @@ export class CoreLoginSiteHelpPage { | ||||
|             protected translate: TranslateService, | ||||
|             protected utils: CoreUtilsProvider) { | ||||
| 
 | ||||
|         this.canScanQR = this.utils.canScanQR() && false; // @todo: Enable it for 3.9 release.
 | ||||
|         this.canScanQR = this.utils.canScanQR(); | ||||
|         this.urlImageHtml = CoreLoginHelperProvider.FAQ_URL_IMAGE_HTML; | ||||
|         this.qrCodeImageHtml = CoreLoginHelperProvider.FAQ_QRCODE_IMAGE_HTML; | ||||
|         this.setupLinkHtml = '<a href="https://moodle.com/getstarted/" title="' + | ||||
|  | ||||
| @ -60,7 +60,7 @@ | ||||
|             <ng-container *ngIf="!fixedSites && showScanQR && !hasSites && !enteredSiteUrl"> | ||||
|                 <div class="core-login-site-qrcode-separator">{{ 'core.login.or' | translate }}</div> | ||||
|                 <ion-item> | ||||
|                     <a ion-button block color="light" margin-top icon-start (click)="scanQR()"> | ||||
|                     <a ion-button block color="light" margin-top icon-start (click)="showInstructionsAndScanQR()"> | ||||
|                         <core-icon name="fa-qrcode" aria-hidden="true"></core-icon> | ||||
|                         {{ 'core.scanqr' | translate }} | ||||
|                     </a> | ||||
|  | ||||
| @ -279,7 +279,7 @@ export class CoreLoginSitePage { | ||||
|             } | ||||
|         ]; | ||||
| 
 | ||||
|         // @TODO: Remove CoreSite.MINIMUM_MOODLE_VERSION, not used on translations since 3.8.3.
 | ||||
|         // @TODO: Remove CoreSite.MINIMUM_MOODLE_VERSION, not used on translations since 3.9.0.
 | ||||
|         this.domUtils.showAlertWithOptions({ | ||||
|             title: this.translate.instant('core.cannotconnect', {$a: CoreSite.MINIMUM_MOODLE_VERSION}), | ||||
|             message, | ||||
| @ -383,8 +383,6 @@ export class CoreLoginSitePage { | ||||
| 
 | ||||
|     /** | ||||
|      * Show instructions and scan QR code. | ||||
|      * | ||||
|      * @todo Use it in 3.9 release instead of scanQR. | ||||
|      */ | ||||
|     showInstructionsAndScanQR(): void { | ||||
|         // Show some instructions first.
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user