mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 18:10:08 +00:00
Add workflow tab tooltip to show full path (#1134)
This commit is contained in:
@@ -11,8 +11,10 @@
|
||||
<template #option="{ option }">
|
||||
<span
|
||||
class="workflow-label text-sm max-w-[150px] truncate inline-block"
|
||||
>{{ option.label }}</span
|
||||
v-tooltip="option.tooltip"
|
||||
>
|
||||
{{ option.label }}
|
||||
</span>
|
||||
<div class="relative">
|
||||
<span class="status-indicator" v-if="option.unsaved">•</span>
|
||||
<Button
|
||||
@@ -43,12 +45,14 @@ const props = defineProps<{
|
||||
const workflowStore = useWorkflowStore()
|
||||
interface WorkflowOption {
|
||||
label: string
|
||||
tooltip: string
|
||||
value: string
|
||||
unsaved: boolean
|
||||
}
|
||||
|
||||
const workflowToOption = (workflow: ComfyWorkflow): WorkflowOption => ({
|
||||
label: workflow.name,
|
||||
tooltip: workflow.path,
|
||||
value: workflow.key,
|
||||
unsaved: workflow.unsaved
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user