+ let renderWarning = w => {
+ const warningsCatalogue = {
+ 'cdrom-image-ignored': gettext("CD-ROM images cannot get imported, please reconfigure the '{0}' drive after the import"),
+ 'nvme-unsupported': gettext("NVMe disks are currently not supported, '{0}' will get attaced as SCSI"),
+ 'ovmf-with-lsi-unsupported': gettext("OVMF is built without LSI drivers, scsi hardware was set to '{1}'"),
+ 'serial-port-socket-only': gettext("Serial socket '{0}' will be mapped to a socket"),
+ };
+ let message = warningsCatalogue[w.type];
+ if (!w.type || !message) {
+ return w.message ?? w.type ?? gettext('Unknown warning');
+ }
+ return Ext.String.format(message, w.key ?? 'unknown', w.value ?? 'unknown');
+ };
+