mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
UI: set redundant state as N/A for non-redundant routers (#10227)
This commit is contained in:
parent
1ff68cf9b1
commit
91f1adab86
@ -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>
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user