fix instanceDiv
This commit is contained in:
parent
979307095d
commit
4730ada40a
@ -58,8 +58,8 @@ class Instance extends HTMLElement {
|
|||||||
super();
|
super();
|
||||||
let shadowRoot = this.attachShadow({mode: "open"});
|
let shadowRoot = this.attachShadow({mode: "open"});
|
||||||
|
|
||||||
let instanceArticle = document.createElement("article");
|
let instanceDiv = document.createElement("div");
|
||||||
shadowRoot.append(instanceArticle);
|
shadowRoot.append(instanceDiv);
|
||||||
|
|
||||||
let styleLink = document.createElement("link");
|
let styleLink = document.createElement("link");
|
||||||
styleLink.rel = "stylesheet";
|
styleLink.rel = "stylesheet";
|
||||||
@ -71,7 +71,7 @@ class Instance extends HTMLElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set data (data) {
|
set data (data) {
|
||||||
let instanceArticle = this.shadowElement.querySelector("article");
|
let instanceDiv = this.shadowElement.querySelector("div");
|
||||||
|
|
||||||
let instanceParagraph = document.createElement("p");
|
let instanceParagraph = document.createElement("p");
|
||||||
instanceParagraph.innerText = `${data.type} | ${data.vmid} | ${data.name} | ${data.status}`;
|
instanceParagraph.innerText = `${data.type} | ${data.vmid} | ${data.name} | ${data.status}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user