fix: removes empty containers (#3511)
@@ -12,10 +12,12 @@
|
|||||||
{{ container.hostLabel }}
|
{{ container.hostLabel }}
|
||||||
</li>
|
</li>
|
||||||
<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">
|
<button popovertarget="popover-container-list" class="btn btn-xs md:btn-sm anchor font-mono">
|
||||||
{{ container.name }} <carbon:caret-down />
|
{{ container.name }} <carbon:caret-down />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<ul popover id="popover-container-list" class="dropdown menu rounded-box bg-base-100 tethered shadow-sm">
|
<ul popover id="popover-container-list" class="dropdown menu rounded-box bg-base-100 tethered shadow-sm">
|
||||||
<li v-for="other in otherContainers">
|
<li v-for="other in otherContainers">
|
||||||
<router-link :to="{ name: '/container/[id]', params: { id: other.id } }">
|
<router-link :to="{ name: '/container/[id]', params: { id: other.id } }">
|
||||||
|
|||||||
@@ -80,8 +80,12 @@
|
|||||||
active-class="menu-active"
|
active-class="menu-active"
|
||||||
@click.alt.stop.prevent="pinnedStore.pinContainer(item)"
|
@click.alt.stop.prevent="pinnedStore.pinContainer(item)"
|
||||||
:title="item.name"
|
:title="item.name"
|
||||||
class="group auto-cols-[auto_max-content_max-content]"
|
class="group auto-cols-[content_max_auto_max-content_max-content]"
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
class="status data-[state=exited]:status-error data-[state=running]:status-success"
|
||||||
|
:data-state="item.state"
|
||||||
|
></div>
|
||||||
<div class="truncate">
|
<div class="truncate">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
@@ -215,7 +219,7 @@ const toggleShowAllContainers = () => (showAllContainers.value = !showAllContain
|
|||||||
}
|
}
|
||||||
|
|
||||||
li.exited {
|
li.exited {
|
||||||
@apply opacity-50;
|
@apply opacity-75;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.deleted {
|
li.deleted {
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |