From ca1607024f64568fb204487f39650ddd7b6b6ff7 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 3 Mar 2025 11:22:18 -0500 Subject: [PATCH] Add tooltip to selection toolbox items (#2829) --- src/components/graph/SelectionToolbox.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/components/graph/SelectionToolbox.vue b/src/components/graph/SelectionToolbox.vue index 641c52cd5..0ba2c2d0b 100644 --- a/src/components/graph/SelectionToolbox.vue +++ b/src/components/graph/SelectionToolbox.vue @@ -15,6 +15,10 @@ () => commandStore.execute('Comfy.Canvas.ToggleSelectedNodes.Bypass') " data-testid="bypass-button" + v-tooltip.top="{ + value: t('commands.Comfy_Canvas_ToggleSelectedNodes_Bypass.label'), + showDelay: 1000 + }" > @@ -58,9 +75,11 @@ import { computed } from 'vue' import ColorPickerButton from '@/components/graph/selectionToolbox/ColorPickerButton.vue' import { useRefreshableSelection } from '@/composables/useRefreshableSelection' +import { st, t } from '@/i18n' import { useExtensionService } from '@/services/extensionService' import { ComfyCommand, useCommandStore } from '@/stores/commandStore' import { useCanvasStore } from '@/stores/graphStore' +import { normalizeI18nKey } from '@/utils/formatUtil' import { isLGraphGroup, isLGraphNode } from '@/utils/litegraphUtil' const commandStore = useCommandStore()