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,13 +71,15 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if (this.ctx) {
|
if (!this.previewMode) {
|
||||||
this.mobileAppSettings = this.ctx.settings;
|
if (this.ctx) {
|
||||||
} else {
|
this.mobileAppSettings = this.ctx.settings;
|
||||||
this.mobileAppService.getMobileAppSettings().subscribe((settings => {
|
} else {
|
||||||
this.mobileAppSettings = settings;
|
this.mobileAppService.getMobileAppSettings().subscribe((settings => {
|
||||||
this.cd.detectChanges();
|
this.mobileAppSettings = settings;
|
||||||
}));
|
this.cd.detectChanges();
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,9 +107,6 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI
|
|||||||
updateQRCode(link: string) {
|
updateQRCode(link: string) {
|
||||||
import('qrcode').then((QRCode) => {
|
import('qrcode').then((QRCode) => {
|
||||||
QRCode.toCanvas(this.canvasRef.nativeElement, link, { width: 100 });
|
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