You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/10/28 04:42:22 UTC
[cloudstack-primate] branch master updated: change the color of
scheduled state (#822)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push:
new 76b28c7 change the color of scheduled state (#822)
76b28c7 is described below
commit 76b28c78daedf5ab35c1289914976116723d7fdb
Author: Hoang Nguyen <ho...@unitech.vn>
AuthorDate: Wed Oct 28 11:42:17 2020 +0700
change the color of scheduled state (#822)
---
src/components/widgets/Status.vue | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/components/widgets/Status.vue b/src/components/widgets/Status.vue
index d67f6bd..fa8fe1a 100644
--- a/src/components/widgets/Status.vue
+++ b/src/components/widgets/Status.vue
@@ -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