mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 15:10:06 +00:00
fix: remove LoRA training filter and counts from workflow templates
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user