Line data Source code
1 : <script setup lang="ts">
2 : import { useI18n } from 'vue-i18n'
3 :
4 : import Tooltip from '@comfyorg/design-system/tooltip/Tooltip'
5 : import TooltipContent from '@comfyorg/design-system/tooltip/TooltipContent'
6 : import TooltipTrigger from '@comfyorg/design-system/tooltip/TooltipTrigger'
7 : import { useAgentPanelStore } from '@/workbench/extensions/agent/stores/agent/agentPanelStore'
8 :
9 : const { workflowPath } = defineProps<{ workflowPath: string }>()
10 3390 : const { t } = useI18n()
11 3390 : const agentPanelStore = useAgentPanelStore()
12 3394 : </script>
13 :
14 : <template>
15 : <Tooltip
16 : v-if="
17 : agentPanelStore.enabled &&
18 : agentPanelStore.selectedWorkflow?.path === workflowPath
19 : "
20 : >
21 : <TooltipTrigger as-child>
22 : <span
23 : role="img"
24 : :aria-label="t('agent.targetForThisChat')"
25 : class="inline-flex size-2.5 shrink-0 text-brand-yellow"
26 : >
27 : <i class="icon-[comfy--comfy-c] size-full" />
28 : </span>
29 : </TooltipTrigger>
30 : <TooltipContent side="right">{{
31 : t('agent.targetForThisChat')
32 : }}</TooltipContent>
33 : </Tooltip>
34 : </template>
|