feat: don't show clear button on empty list

This commit is contained in:
Matthias 2024-11-20 20:13:41 +01:00
parent 8b8a7a0f06
commit 7f3d93d1e2

View File

@ -45,6 +45,8 @@ const { runningJobs, clearJobs } = useBackgroundJob();
</div>
</BListGroupItem>
</BListGroup>
<BButton size="sm" class="ms-auto" @click="clearJobs"><i-mdi-delete /></BButton>
<BButton v-if="Object.keys(runningJobs).length > 0" size="sm" class="ms-auto" @click="clearJobs"
><i-mdi-delete
/></BButton>
</div>
</template>