Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit 76b28c7

Browse files
author
Hoang Nguyen
authored
change the color of scheduled state (#822)
1 parent 077268e commit 76b28c7

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/components/widgets/Status.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
<template>
1919
<a-tooltip placement="bottom" :title="$t(getTooltip(text))">
20-
<a-badge style="display: inline-flex" :title="text" :status="getBadgeStatus(text)" :text="getText()" />
20+
<a-badge
21+
style="display: inline-flex"
22+
:title="text"
23+
:color="getStatusColor(text)"
24+
:status="getBadgeStatus(text)"
25+
:text="getText()" />
2126
</a-tooltip>
2227
</template>
2328

@@ -106,7 +111,6 @@ export default {
106111
break
107112
case 'Migrating':
108113
case 'Scaling':
109-
case 'Scheduled':
110114
case 'Starting':
111115
case 'Stopping':
112116
case 'Upgrading':
@@ -127,6 +131,13 @@ export default {
127131
}
128132
return status
129133
},
134+
getStatusColor (state) {
135+
if (state === 'Scheduled') {
136+
return 'blue'
137+
}
138+
139+
return null
140+
},
130141
getTooltip (state) {
131142
if (!(state && this.displayText)) {
132143
return

0 commit comments

Comments
 (0)