Skip to content

Modern Docker Management, Designed for Everyone

feat: show current environment in page title (#1336)

Chase Baucomaf4fdda11c5f
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index db6e23eae..2d6c1b740 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -18,6 +18,7 @@
import { invalidateAll } from '$app/navigation';
import { cn } from '$lib/utils';
import * as Tooltip from '$lib/components/ui/tooltip/index.js';
+ import { environmentStore } from '$lib/stores/environment.store.svelte';
let {
data,
@@ -75,9 +76,15 @@
function handlePasswordChangeSuccess() {
invalidateAll();
}
+
+ const pageTitle = $derived(
+ environmentStore.selected
+ ? `${m.layout_title()} | ${environmentStore.selected.name}`
+ : m.layout_title()
+ );
</script>
-<svelte:head><title>{m.layout_title()}</title></svelte:head>
+<svelte:head><title>{pageTitle}</title></svelte:head>
<div class={cn('flex min-h-dvh flex-col', isGlassEnabled ? 'bg-transparent' : 'bg-background')}>
{#if !settings && data.user}