[mod] more colors
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="w in watchers">
|
<li v-for="w in watchers">
|
||||||
<i class="fas" v-bind:class="watcherClass(w)"></i>
|
<i class="fas" v-bind:class="watcherIconClass(w)"></i>
|
||||||
{{ w.name }} <span>{{ w.state }}</span>
|
{{ w.name }} <span v-bind:class="watcherClass(w)">{{ w.state }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
watcherClass(watcher) {
|
watcherIconClass(watcher) {
|
||||||
if (watcher.state === 'OK') {
|
if (watcher.state === 'OK') {
|
||||||
return ['fa-check', 'text-success']
|
return ['fa-check', 'text-success']
|
||||||
}
|
}
|
||||||
@@ -32,6 +32,15 @@
|
|||||||
return ['fa-times', 'text-danger']
|
return ['fa-times', 'text-danger']
|
||||||
}
|
}
|
||||||
return ['fa-question']
|
return ['fa-question']
|
||||||
|
},
|
||||||
|
watcherClass(watcher) {
|
||||||
|
if (watcher.state === 'OK') {
|
||||||
|
return ['text-success']
|
||||||
|
}
|
||||||
|
if (watcher.state === 'FAILURE') {
|
||||||
|
return ['text-danger']
|
||||||
|
}
|
||||||
|
return ['text-info']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user