fix(ui): the topbar section crumb names the destination on detail pages (#1880)
This commit is contained in:
1 file changed
+2
-1
@@ -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 ?? {};
|
||||
|
||||
Reference in new issue
Block a user