UI: set redundant state as N/A for non-redundant routers (#10227)

This commit is contained in:
Wei Zhou 2025-01-21 14:29:37 +01:00 committed by GitHub
parent 1ff68cf9b1
commit 91f1adab86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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
}