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 <[email protected]>
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 <[email protected]>
---
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>