Add initial edit model button (static) (#4276)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2025-06-26 00:34:38 -07:00
committed by GitHub
parent 4c177121a6
commit 9a3530dc3a
19 changed files with 761 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
<ColorPickerButton />
<BypassButton />
<PinButton />
<EditModelButton />
<MaskEditorButton />
<DeleteButton />
<RefreshButton />

View File

@@ -0,0 +1,25 @@
<template>
<Button
v-show="canvasStore.nodeSelected || canvasStore.groupSelected"
v-tooltip.top="{
value: t('commands.Comfy_Canvas_AddEditModelStep.label'),
showDelay: 1000
}"
severity="secondary"
text
icon="pi pi-pen-to-square"
@click="() => commandStore.execute('Comfy.Canvas.AddEditModelStep')"
/>
</template>
<script setup lang="ts">
import Button from 'primevue/button'
import { useI18n } from 'vue-i18n'
import { useCommandStore } from '@/stores/commandStore'
import { useCanvasStore } from '@/stores/graphStore'
const { t } = useI18n()
const commandStore = useCommandStore()
const canvasStore = useCanvasStore()
</script>