diff --git a/www/src/ts/virtual_machine/device.ts b/www/src/ts/virtual_machine/device.ts index 55c52a4..7fb62d7 100644 --- a/www/src/ts/virtual_machine/device.ts +++ b/www/src/ts/virtual_machine/device.ts @@ -599,8 +599,8 @@ export class VMAddDeviceButton extends BaseElement { const datapoints: [string, string][] = []; for (const entry of this._strutures.values()) { datapoints.push( - [entry.name, entry.name], [entry.title, entry.name], + [entry.name, entry.name], [entry.desc, entry.name], ); } @@ -843,17 +843,12 @@ export class VmDeviceTemplate extends BaseElement { this.deviceDB = e.detail; } - onImageErr(e: Event) { - this.image_err = true; - console.log("Image load error", e); - } - renderFields(): HTMLTemplateResult { const fields = Object.entries(this.fields); return html` ${fields.map(([name, field], _index, _fields) => { return html` - + ${name} ${field.field_type} @@ -932,10 +927,11 @@ export class VmDeviceTemplate extends BaseElement { onerror="this.src = '${VMDeviceCard.transparentImg}'" />
- ${device?.name} - ${device?.hash} + ${device.title} + ${device?.name} + ${device?.hash}
- Add Add @@ -943,15 +939,15 @@ export class VmDeviceTemplate extends BaseElement { Fields Slots - Reagents + Networks - Pins + ${this.renderFields()} ${this.renderSlots()} - ${this.renderReagents()} + ${this.renderNetworks()} - ${this.renderPins()} +