Remove new default workflow button in workflows sidebar (#1100)

This commit is contained in:
Chenlei Hu
2024-10-04 11:37:37 -04:00
committed by GitHub
parent e20126a254
commit 39d68bcdc4
4 changed files with 11 additions and 20 deletions

View File

@@ -11,25 +11,16 @@
"
/>
<Button
class="browse-workflows-button"
class="open-workflow-button"
icon="pi pi-folder-open"
v-tooltip="'Browse for an image or exported workflow'"
v-tooltip="$t('sideToolbar.openWorkflow')"
text
@click="() => commandStore.getCommandFunction('Comfy.OpenWorkflow')()"
/>
<Button
class="new-default-workflow-button"
icon="pi pi-code"
v-tooltip="'Load default workflow'"
text
@click="
() => commandStore.getCommandFunction('Comfy.LoadDefaultWorkflow')()
"
/>
<Button
class="new-blank-workflow-button"
icon="pi pi-plus"
v-tooltip="'Create a new blank workflow'"
v-tooltip="$t('sideToolbar.newBlankWorkflow')"
@click="
() => commandStore.getCommandFunction('Comfy.NewBlankWorkflow')()
"

View File

@@ -55,6 +55,8 @@ const messages = {
nodeLibrary: 'Node Library',
workflows: 'Workflows',
browseTemplates: 'Browse example templates',
openWorkflow: 'Open workflow in local file system',
newBlankWorkflow: 'Create a new blank workflow',
nodeLibraryTab: {
sortOrder: 'Sort Order'
},
@@ -159,6 +161,8 @@ const messages = {
nodeLibrary: '节点库',
workflows: '工作流',
browseTemplates: '浏览示例模板',
openWorkflow: '在本地文件系统中打开工作流',
newBlankWorkflow: '创建一个新空白工作流',
nodeLibraryTab: {
sortOrder: '排序顺序'
},