This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push:
new 91f1adab862 UI: set redundant state as N/A for non-redundant routers
(#10227)
91f1adab862 is described below
commit 91f1adab862e3be5ee9931ca97b9eac920550757
Author: Wei Zhou <[email protected]>
AuthorDate: Tue Jan 21 14:29:37 2025 +0100
UI: set redundant state as N/A for non-redundant routers (#10227)
---
ui/src/components/view/ListView.vue | 4 ++++
ui/src/components/widgets/Status.vue | 2 ++
2 files changed, 6 insertions(+)
diff --git a/ui/src/components/view/ListView.vue
b/ui/src/components/view/ListView.vue
index 61b688dc75a..eaa54939d07 100644
--- a/ui/src/components/view/ListView.vue
+++ b/ui/src/components/view/ListView.vue
@@ -220,6 +220,10 @@
<template v-if="column.key === 'allocationstate'">
<status :text="text ? text : ''" displayText />
</template>
+ <template v-if="column.key === 'redundantstate'">
+ <status v-if="record && record.isredundantrouter" :text="text ? text :
''" displayText />
+ <status v-else :text="'N/A'" displayText :styles="{ 'min-width':
'80px' }" />
+ </template>
<template v-if="column.key === 'resourcestate'">
<status :text="text ? text : ''" displayText />
</template>
diff --git a/ui/src/components/widgets/Status.vue
b/ui/src/components/widgets/Status.vue
index 22b7849aa61..a8b7327e3c7 100644
--- a/ui/src/components/widgets/Status.vue
+++ b/ui/src/components/widgets/Status.vue
@@ -113,6 +113,7 @@ export default {
case 'up':
case 'success':
case 'poweron':
+ case 'primary':
status = 'success'
break
case 'alert':
@@ -149,6 +150,7 @@ export default {
case 'pending':
case 'unsecure':
case 'warning':
+ case 'backup':
status = 'warning'
break
}