Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 8e0cdf9

Browse files
authored
Merge pull request #8330 from systeminit/jobelenus/logo-as-navigation
Add navigation to explore page to the SI logo
2 parents 25969a4 + a04cb5d commit 8e0cdf9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

app/web/src/newhotness/nav/NavbarPanelLeft.vue

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<template>
22
<div class="flex flex-row flex-1 basis-1/2 items-center min-w-[340px] h-full overflow-hidden">
3-
<SiLogo class="block h-[44px] w-[44px] ml-[12px] mr-[12px] flex-none" />
3+
<SiLogo
4+
class="block h-[44px] w-[44px] ml-[12px] mr-[12px] flex-none cursor-pointer"
5+
@click="() => router.push(compositionLink)"
6+
/>
47

58
<label class="flex flex-col flex-1 min-w-0 max-w-fit">
69
<div class="text-[11px] mt-[1px] mb-[5px] capsize font-medium text-neutral-300">WORKSPACE:</div>
@@ -45,7 +48,9 @@ import { computed, inject, ref, watch } from "vue";
4548
import StatusPanel from "@/newhotness/StatusPanel.vue";
4649
import ChangeSetPanel from "./ChangeSetPanel.vue";
4750
import { Context, Workspaces } from "../types";
51+
import { RouteLocationAsPathGeneric, RouteLocationAsRelativeGeneric, useRouter } from "vue-router";
4852
53+
const router = useRouter();
4954
const workspaces = inject<Workspaces>("WORKSPACES");
5055
const ctx = inject<Context>("CONTEXT");
5156
@@ -55,6 +60,15 @@ const props = defineProps<{
5560
invalidWorkspace?: boolean;
5661
}>();
5762
63+
const compositionLink = computed(() => {
64+
const name = "new-hotness";
65+
const params = { workspacePk: props.workspaceId, changeSetId: props.changeSetId };
66+
return {
67+
name,
68+
params,
69+
} as RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric;
70+
});
71+
5872
const selectedWorkspaceId = ref(props.invalidWorkspace ? undefined : props.workspaceId);
5973
watch(
6074
() => props.workspaceId,

0 commit comments

Comments
 (0)