You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2023/10/25 16:34:36 UTC
[cloudstack] branch main updated: dashboard: on admin dashboard use red-dot icon when hosts are in alert (#8144)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new ebf14096221 dashboard: on admin dashboard use red-dot icon when hosts are in alert (#8144)
ebf14096221 is described below
commit ebf140962218cb1fb2f66850198224e22f4b9c83
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Wed Oct 25 22:04:30 2023 +0530
dashboard: on admin dashboard use red-dot icon when hosts are in alert (#8144)
This improves the function to not show the alert status on host icon
when there are no hosts in alert state. Instead a colour/theme matching
exclaimation is show next to the host icon, otherwise show green tick.
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
ui/src/views/dashboard/CapacityDashboard.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui/src/views/dashboard/CapacityDashboard.vue b/ui/src/views/dashboard/CapacityDashboard.vue
index b6fa854efb5..a174e60b709 100644
--- a/ui/src/views/dashboard/CapacityDashboard.vue
+++ b/ui/src/views/dashboard/CapacityDashboard.vue
@@ -112,7 +112,8 @@
:value-style="{ color: $config.theme['@primary-color'] }">
<template #prefix>
<database-outlined/>
- <status class="status" text="Alert" style="margin-left: -10px"/>
+ <a-badge v-if="data.alertHosts > 0" count="!" style="margin-left: -5px" />
+ <a-badge v-else count="✓" style="margin-left: -5px" :number-style="{ backgroundColor: '#52c41a' }" />
</template>
</a-statistic>
</router-link>