From c4ddc4ded3a5662f53bc9be7349f4aaec7fb09d7 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Oct 2023 22:32:19 +0000 Subject: [PATCH] fix handling of instances with empty name, improve instance table headers --- index.html | 8 ++++---- scripts/instance.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 367e967..2db2ff1 100644 --- a/index.html +++ b/index.html @@ -72,16 +72,16 @@
-

VM ID

+

ID

-

VM Name

+

Name

-

VM Type

+

Type

-

VM Status

+

Status

Host Name

diff --git a/scripts/instance.js b/scripts/instance.js index 9fbbc5d..0d55eca 100644 --- a/scripts/instance.js +++ b/scripts/instance.js @@ -92,7 +92,7 @@ class InstanceCard extends HTMLElement { } } else { - nameParagraph.innerText = this.name ? this.name : ""; + nameParagraph.innerHTML = this.name ? this.name : " "; } const typeParagraph = this.shadowRoot.querySelector("#instance-type");