fix: remove VRAM sorting option from template filtering

This commit is contained in:
Johnpaul
2025-09-26 18:53:25 +01:00
parent f44356b152
commit dd9680bac8
2 changed files with 1 additions and 16 deletions

View File

@@ -620,13 +620,6 @@ const sortOptions = computed(() => [
name: t('templateWorkflows.sort.default', 'Default'),
value: 'default'
},
{
name: t(
'templateWorkflows.sort.vramLowToHigh',
'VRAM Utilization (Low to High)'
),
value: 'vram-low-to-high'
},
{
name: t(
'templateWorkflows.sort.modelSizeLowToHigh',

View File

@@ -12,11 +12,7 @@ export function useTemplateFiltering(
const selectedUseCases = ref<string[]>([])
const selectedLicenses = ref<string[]>([])
const sortBy = ref<
| 'default'
| 'alphabetical'
| 'newest'
| 'vram-low-to-high'
| 'model-size-low-to-high'
'default' | 'alphabetical' | 'newest' | 'model-size-low-to-high'
>('newest')
const templatesArray = computed(() => {
@@ -143,10 +139,6 @@ export function useTemplateFiltering(
const dateB = new Date(b.date || '1970-01-01')
return dateB.getTime() - dateA.getTime()
})
case 'vram-low-to-high':
// TODO: Implement VRAM sorting when VRAM data is available
// For now, keep original order
return templates
case 'model-size-low-to-high':
return templates.sort((a: any, b: any) => {
const sizeA =