Autofix on save

This commit is contained in:
Adam Stachowicz
2021-07-27 19:47:13 +02:00
parent 8331e795e7
commit 9648d700d7
29 changed files with 1182 additions and 1089 deletions

View File

@@ -5,34 +5,34 @@
<script>
export default {
props: {
status: Number
status: Number,
},
computed: {
color() {
if (this.status === 0) {
return "danger"
} else if (this.status === 1) {
} if (this.status === 1) {
return "primary"
} else if (this.status === 2) {
} if (this.status === 2) {
return "warning"
} else {
return "secondary"
}
return "secondary"
},
text() {
if (this.status === 0) {
return "Down"
} else if (this.status === 1) {
} if (this.status === 1) {
return "Up"
} else if (this.status === 2) {
} if (this.status === 2) {
return "Pending"
} else {
return "Unknown"
}
return "Unknown"
},
}
},
}
</script>