Web: hide 'clusters' list when there are none
Due to the proxying behaviour of VueJS, `workers.clusters` is always considered `true`, even when empty. Explicitly test for the length.
This commit is contained in:
parent
f6f1ebdd05
commit
d75962c817
@ -34,7 +34,7 @@
|
|||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<section class="worker-clusters" v-if="workers.clusters">
|
<section class="worker-clusters" v-if="workers.clusters && workers.clusters.length">
|
||||||
<h3 class="sub-title">Clusters</h3>
|
<h3 class="sub-title">Clusters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="cluster in workers.clusters">
|
<li v-for="cluster in workers.clusters">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user