UI: added preview images for mobile app qr code widgets
This commit is contained in:
		
							parent
							
								
									14ebfe7975
								
							
						
					
					
						commit
						21872468e2
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -71,6 +71,7 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ngOnInit(): void {
 | 
			
		||||
    if (!this.previewMode) {
 | 
			
		||||
      if (this.ctx) {
 | 
			
		||||
        this.mobileAppSettings = this.ctx.settings;
 | 
			
		||||
      } else {
 | 
			
		||||
@ -80,6 +81,7 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI
 | 
			
		||||
        }));
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ngAfterViewInit(): void {
 | 
			
		||||
    this.getMobileAppDeepLink().subscribe(link => {
 | 
			
		||||
@ -105,9 +107,6 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI
 | 
			
		||||
  updateQRCode(link: string) {
 | 
			
		||||
    import('qrcode').then((QRCode) => {
 | 
			
		||||
      QRCode.toCanvas(this.canvasRef.nativeElement, link, { width: 100 });
 | 
			
		||||
      // QRCode.toCanvas(this.canvasRef.nativeElement, link);
 | 
			
		||||
      // this.canvasRef.nativeElement.style.width = '4.6vw';
 | 
			
		||||
      // this.canvasRef.nativeElement.style.height = '4.6vw';
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user