fix(ui): the topbar section crumb names the destination on detail pages (#1880)

This commit is contained in:
sam committed 2026-11-14 04:03:46 +11:00
1 parent 5edf58fd68
commit 92fbcd7a28
1 file changed
+2 -1
+2 -1
View File
@@ -29,7 +29,8 @@ useLiveResource("tasks", () => void store.load(), 5000);
const links = computed(() =>
navTree(props.hidden).flatMap((node): NavEntry[] => (node.kind === "link" ? [node.entry] : [])),
);
const activePath = computed(() => activeNavPath(route.path));
// Detail routes carry the primary destination they belong to in meta.navPath.
const activePath = computed(() => (typeof route.meta.navPath === "string" ? route.meta.navPath : activeNavPath(route.path)));
const current = computed(() => links.value.find((entry) => entry.path === activePath.value));
const attention = computed(() => {
const counts = summary.value?.statuses ?? {};