diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts index e11c854e16..bbbcfadd6d 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts @@ -84,6 +84,7 @@ export class TbDeviceInstallDialogComponent extends DialogComponent(); + zipImages = new Map(); // Connectivity showConnectivitySelector = false; @@ -121,10 +122,18 @@ export class TbDeviceInstallDialogComponent extends DialogComponent { + if (path.startsWith('data:') || path.startsWith('http')) { + return match; + } + const dataUri = this.zipImages.get(path); + return dataUri ? `![${alt}](${dataUri})` : match; + }); + } + // --- Private --- private startWizard(): void { @@ -373,7 +392,7 @@ export class TbDeviceInstallDialogComponent extends DialogComponent