1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

feat: improves host labels and respects configurations for labels (#2369)

* feat: improves host labels and respects configurations for labels

* fixes tests
This commit is contained in:
Amir Raminfar
2023-08-25 13:42:00 -07:00
committed by GitHub
parent 512b181b48
commit 34ad45c64e
6 changed files with 29 additions and 6 deletions

View File

@@ -28,7 +28,7 @@
{{ container.name }}
</router-link>
</td>
<td v-if="isVisible('host')">{{ container.host }}</td>
<td v-if="isVisible('host')">{{ container.hostLabel }}</td>
<td v-if="isVisible('state')">{{ container.state }}</td>
<td v-if="isVisible('created')">
<distance-time :date="container.created" strict :suffix="false"></distance-time>
@@ -69,7 +69,7 @@ const fields = {
},
host: {
label: "label.host",
sortFunc: (a: Container, b: Container) => a.host.localeCompare(b.host) * direction.value,
sortFunc: (a: Container, b: Container) => a.hostLabel.localeCompare(b.hostLabel) * direction.value,
mobileVisible: false,
},
state: {