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";
4548import StatusPanel from " @/newhotness/StatusPanel.vue" ;
4649import ChangeSetPanel from " ./ChangeSetPanel.vue" ;
4750import { Context , Workspaces } from " ../types" ;
51+ import { RouteLocationAsPathGeneric , RouteLocationAsRelativeGeneric , useRouter } from " vue-router" ;
4852
53+ const router = useRouter ();
4954const workspaces = inject <Workspaces >(" WORKSPACES" );
5055const 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+
5872const selectedWorkspaceId = ref (props .invalidWorkspace ? undefined : props .workspaceId );
5973watch (
6074 () => props .workspaceId ,
0 commit comments