From 13069da195950d2598492ea9f4a8bb4585fcb71f Mon Sep 17 00:00:00 2001 From: luixal Date: Tue, 11 Oct 2022 19:00:53 +0200 Subject: Adds loading and errors icons/msgs. Adds docs. --- src/components/services/Proxmox.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/components/services/Proxmox.vue b/src/components/services/Proxmox.vue index 981bdf1..092d077 100644 --- a/src/components/services/Proxmox.vue +++ b/src/components/services/Proxmox.vue @@ -7,8 +7,11 @@ {{ item.subtitle }}

+ @@ -43,7 +50,8 @@ memoryUsed: 0, diskUsed: 0, cpuUsed: 0, - error: false + error: false, + loading: true }), created() { this.fetchStatus(); @@ -71,8 +79,10 @@ this.vms.total += vms.data.length; this.vms.running += vms.data.filter( i => i.status === 'running' ).length; this.error = false; + this.loading = false; } catch(err) { console.log(err); + this.loading = false; this.error = true; } }, -- cgit v1.2.3