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:
Sybren A. Stüvel 2023-04-04 12:32:32 +02:00
parent f6f1ebdd05
commit d75962c817

View File

@ -34,7 +34,7 @@
</dd>
</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>
<ul>
<li v-for="cluster in workers.clusters">