From c8e8682020fcd59febb2e2c911a9b05ad6db6062 Mon Sep 17 00:00:00 2001 From: davidjumani Date: Thu, 10 Mar 2022 11:00:02 +0530 Subject: [PATCH 1/2] ui: Fix dashboard links --- ui/src/views/dashboard/UsageDashboard.vue | 6 +++--- ui/src/views/dashboard/UsageDashboardChart.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index d5d6119f15f0..01bad241c48f 100644 --- a/ui/src/views/dashboard/UsageDashboard.vue +++ b/ui/src/views/dashboard/UsageDashboard.vue @@ -52,7 +52,7 @@ :bordered="false" :loading="loading" :style="stat.bgcolor ? { 'background': stat.bgcolor } : {}"> - +

{{ stat.name }}

@@ -173,7 +173,7 @@ export default { count = json.listvirtualmachinesresponse.count } var tileColor = this.$config.theme['@dashboard-tile-runningvms-bg'] || '#dfe9cc' - this.stats.splice(0, 1, { name: this.$t('label.running'), count: count, icon: 'desktop-outlined', bgcolor: tileColor, path: '/vm?state=running&filter=running' }) + this.stats.splice(0, 1, { name: this.$t('label.running'), count: count, icon: 'desktop-outlined', bgcolor: tileColor, path: '/vm', query: { state: 'running', filter: 'running' } }) }) api('listVirtualMachines', { state: 'Stopped', listall: true }).then(json => { var count = 0 @@ -181,7 +181,7 @@ export default { count = json.listvirtualmachinesresponse.count } var tileColor = this.$config.theme['@dashboard-tile-stoppedvms-bg'] || '#edcbce' - this.stats.splice(1, 1, { name: this.$t('label.stopped'), count: count, icon: 'poweroff-outlined', bgcolor: tileColor, path: '/vm?state=stopped&filter=stopped' }) + this.stats.splice(1, 1, { name: this.$t('label.stopped'), count: count, icon: 'poweroff-outlined', bgcolor: tileColor, path: '/vm', query: { state: 'stopped', filter: 'stopped' } }) }) api('listVirtualMachines', { listall: true }).then(json => { var count = 0 diff --git a/ui/src/views/dashboard/UsageDashboardChart.vue b/ui/src/views/dashboard/UsageDashboardChart.vue index 363b82e66275..8dd066651f1b 100644 --- a/ui/src/views/dashboard/UsageDashboardChart.vue +++ b/ui/src/views/dashboard/UsageDashboardChart.vue @@ -27,7 +27,7 @@ :bordered="false" :loading="loading" :style="stat.bgcolor ? { 'background-color': stat.bgcolor } : {}"> - +

{{ stat.name }}

From 003326e370080fd40adc9320c2b3858742a14dfd Mon Sep 17 00:00:00 2001 From: davidjumani Date: Thu, 10 Mar 2022 11:11:23 +0530 Subject: [PATCH 2/2] Fix event links --- ui/src/views/dashboard/UsageDashboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index 01bad241c48f..7bf1f13cdb50 100644 --- a/ui/src/views/dashboard/UsageDashboard.vue +++ b/ui/src/views/dashboard/UsageDashboard.vue @@ -86,7 +86,7 @@ :key="event.id" :color="getEventColour(event)"> {{ $toLocaleDate(event.created) }}
- {{ event.type }}
+ {{ event.type }}
({{ event.username }}) {{ event.description }}