mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-26 23:21:41 +01:00
* fix: adds port and schema to connection again to fix clashes between same host. fixes #2279 * fixes tests
14 lines
446 B
TypeScript
14 lines
446 B
TypeScript
import { Container } from "@/models/Container";
|
|
|
|
const sessionHost = useSessionStorage<string | null>("host", null);
|
|
|
|
if (config.hosts.length === 1 && !sessionHost.value) {
|
|
sessionHost.value = config.hosts[0].id;
|
|
}
|
|
|
|
function persistentVisibleKeys(container: ComputedRef<Container>) {
|
|
return computed(() => useStorage(stripVersion(container.value.image) + ":" + container.value.command, []));
|
|
}
|
|
|
|
export { sessionHost, persistentVisibleKeys };
|