1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

fix: removes empty containers (#3511)

This commit is contained in:
Amir Raminfar
2025-01-06 13:40:29 -08:00
committed by GitHub
parent 151a3efb16
commit a1a9031cda
6 changed files with 9 additions and 3 deletions

View File

@@ -12,10 +12,12 @@
{{ container.hostLabel }}
</li>
<li>
<div class="wrapper" ref="wrapper">
<div v-if="otherContainers.length === 0" class="font-mono">{{ container.name }}</div>
<div class="wrapper" ref="wrapper" v-else>
<button popovertarget="popover-container-list" class="btn btn-xs md:btn-sm anchor font-mono">
{{ container.name }} <carbon:caret-down />
</button>
<ul popover id="popover-container-list" class="dropdown menu rounded-box bg-base-100 tethered shadow-sm">
<li v-for="other in otherContainers">
<router-link :to="{ name: '/container/[id]', params: { id: other.id } }">