change the color of scheduled state (#822)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Hoang Nguyen 2020-10-28 11:42:17 +07:00 committed by Rohit Yadav
parent 23b928e1b2
commit 157e4a0dbe
1 changed files with 13 additions and 2 deletions

View File

@ -17,7 +17,12 @@
<template>
<a-tooltip placement="bottom" :title="$t(getTooltip(text))">
<a-badge style="display: inline-flex" :title="text" :status="getBadgeStatus(text)" :text="getText()" />
<a-badge
style="display: inline-flex"
:title="text"
:color="getStatusColor(text)"
:status="getBadgeStatus(text)"
:text="getText()" />
</a-tooltip>
</template>
@ -106,7 +111,6 @@ export default {
break
case 'Migrating':
case 'Scaling':
case 'Scheduled':
case 'Starting':
case 'Stopping':
case 'Upgrading':
@ -127,6 +131,13 @@ export default {
}
return status
},
getStatusColor (state) {
if (state === 'Scheduled') {
return 'blue'
}
return null
},
getTooltip (state) {
if (!(state && this.displayText)) {
return