diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index d5d6119f15f..7bf1f13cdb5 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 }}

@@ -86,7 +86,7 @@ :key="event.id" :color="getEventColour(event)"> {{ $toLocaleDate(event.created) }}
- {{ event.type }}
+ {{ event.type }}
({{ event.username }}) {{ event.description }} @@ -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 363b82e6627..8dd066651f1 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 }}