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

feat: adds host to container table on homepage (#2367)

* feat: adds host to container table on homepage

* more translations
This commit is contained in:
Amir Raminfar
2023-08-25 10:26:39 -07:00
committed by GitHub
parent 0dd68b22ca
commit 9cdc8ad8f5
7 changed files with 12 additions and 0 deletions

View File

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