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

fix: adds port and schema to connection again to fix clashes between same host. fixes #2279 (#2289)

* fix: adds port and schema to connection again to fix clashes between same host. fixes #2279

* fixes tests
This commit is contained in:
Amir Raminfar
2023-07-06 09:22:22 -07:00
committed by GitHub
parent e4ef784be7
commit 2c909dab09
10 changed files with 34 additions and 34 deletions

View File

@@ -16,7 +16,7 @@
<transition :name="sessionHost ? 'slide-left' : 'slide-right'" mode="out-in">
<ul class="menu-list" v-if="!sessionHost">
<li v-for="host in config.hosts">
<a @click.prevent="setHost(host.host)">{{ host.name }}</a>
<a @click.prevent="setHost(host.id)">{{ host.name }}</a>
</li>
</ul>
<ul class="menu-list" v-else>
@@ -88,10 +88,10 @@ const sortedContainers = computed(() =>
const hosts = computed(() =>
config.hosts.reduce(
(acc, item) => {
acc[item.host] = item;
acc[item.id] = item;
return acc;
},
{} as Record<string, { name: string; host: string }>,
{} as Record<string, { name: string; id: string }>,
),
);