diff --git a/src/components/services/Proxmox.vue b/src/components/services/Proxmox.vue index 2b533db..8136050 100644 --- a/src/components/services/Proxmox.vue +++ b/src/components/services/Proxmox.vue @@ -1,135 +1,193 @@ - - - - - \ No newline at end of file + parseVMsAndLXCs(items, value) { + value.total += items.data.length; + value.running += items.data.filter((i) => i.status === "running").length; + // if no vms, hide this value: + if (value.total == 0) this.hide.push("lxcs"); + }, + isValueShown(value) { + return this.hide.indexOf(value) == -1; + }, + }, +}; + + +