diff --git a/ui/src/components/CloudMonkey/Resource.vue b/ui/src/components/CloudMonkey/Resource.vue
index 3211d1bf6b5..b5c3f465af6 100644
--- a/ui/src/components/CloudMonkey/Resource.vue
+++ b/ui/src/components/CloudMonkey/Resource.vue
@@ -164,9 +164,9 @@
{{ text }}
-
+
-
+
{{ text }}
@@ -434,31 +434,31 @@ export default {
}
})
},
- getRowClassName(record, index) {
- if (index % 2 !== 0) {
+ getRowClassName (record, index) {
+ if (index % 2 === 0) {
return 'light-row'
}
return 'dark-row'
},
- getBadgeStatus(state) {
- var status = "default"
+ getBadgeStatus (state) {
+ var status = 'default'
switch (state) {
- case "Running":
- case "Ready":
- case "Up":
- case "BackedUp":
- status = "success"
+ case 'Running':
+ case 'Ready':
+ case 'Up':
+ case 'BackedUp':
+ status = 'success'
break
- case "Stopped":
- status = "error"
+ case 'Stopped':
+ status = 'error'
break
- case "Migrating":
- case "Starting":
- status = "processing"
+ case 'Migrating':
+ case 'Starting':
+ status = 'processing'
break
- case "Alert":
- case "Allocated":
- status = "warning"
+ case 'Alert':
+ case 'Allocated':
+ status = 'warning'
break
}
return status