fix: remove LoRA training filter and counts from workflow templates

This commit is contained in:
Johnpaul
2025-08-30 01:41:36 +01:00
parent 01827df5f0
commit 24af9763d2
2 changed files with 7 additions and 35 deletions

View File

@@ -98,7 +98,10 @@
>
<Button
v-tooltip.bottom="$t('g.seeTutorial')"
class="inline-flex items-center justify-center rounded-lg bg-[#FDFBFA] w-8 h-8 cursor-pointer"
:class="[
'inline-flex items-center justify-center rounded-lg bg-[#FDFBFA] w-8 h-8 cursor-pointer transition-opacity duration-200',
isHovered ? 'opacity-100' : 'opacity-0 pointer-events-none'
]"
@click="openTutorial"
>
<i class="icon-[comfy--dark-info] w-4 h-4" />

View File

@@ -316,14 +316,7 @@ export const useWorkflowTemplatesStore = defineStore(
(t) => t.sourceModule !== 'default'
)
case 'lora-training':
return enhancedTemplates.value.filter(
(t) =>
t.tags?.includes('LoRA') ||
t.tags?.includes('Training') ||
t.name?.toLowerCase().includes('lora') ||
t.title?.toLowerCase().includes('lora')
)
// Removed lora-training filter (deprecated)
case 'performance-small':
case 'performance-mac':
@@ -366,13 +359,7 @@ export const useWorkflowTemplatesStore = defineStore(
(t) => t.sourceModule !== 'default'
).length
// Performance-related counts removed (Small Models / Mac) per request
const loraTrainingCounts = enhancedTemplates.value.filter(
(t) =>
t.tags?.includes('LoRA') ||
t.tags?.includes('Training') ||
t.name?.toLowerCase().includes('lora') ||
t.title?.toLowerCase().includes('lora')
).length
// Removed loraTrainingCounts (deprecated category)
// All Templates - as a simple selector
items.push({
@@ -478,25 +465,7 @@ export const useWorkflowTemplatesStore = defineStore(
})
}
// Model Training - as a group
if (loraTrainingCounts > 0) {
items.push({
title: st(
'templateWorkflows.category.ModelTraining',
'Model Training'
),
items: [
{
id: 'lora-training',
label: st(
'templateWorkflows.category.LoRATraining',
'LoRA Training'
),
icon: getCategoryIcon('lora-training')
}
]
})
}
// Removed Model Training (LoRA) group
// Removed Performance group (Small Models / Runs on Mac) per request