fix handling of instances with empty name,

improve instance table headers
This commit is contained in:
Arthur Lu 2023-10-16 22:32:19 +00:00
parent 72db810ef0
commit c4ddc4ded3
2 changed files with 5 additions and 5 deletions

View File

@ -72,16 +72,16 @@
<div>
<div class="w3-row w3-hide-small" style="border-bottom: 1px solid;">
<div class="w3-col l1 m2">
<p>VM ID</p>
<p>ID</p>
</div>
<div class="w3-col l2 m3">
<p>VM Name</p>
<p>Name</p>
</div>
<div class="w3-col l1 m2">
<p>VM Type</p>
<p>Type</p>
</div>
<div class="w3-col l2 m3">
<p>VM Status</p>
<p>Status</p>
</div>
<div class="w3-col l2 w3-hide-medium">
<p>Host Name</p>

View File

@ -92,7 +92,7 @@ class InstanceCard extends HTMLElement {
}
}
else {
nameParagraph.innerText = this.name ? this.name : "";
nameParagraph.innerHTML = this.name ? this.name : "&nbsp;";
}
const typeParagraph = this.shadowRoot.querySelector("#instance-type");