feat: add new sorting options for template filtering by VRAM utilization and model size

This commit is contained in:
Johnpaul
2025-08-20 22:31:17 +01:00
parent 9ec2f69282
commit 8fb225f1f6
2 changed files with 22 additions and 6 deletions

View File

@@ -319,13 +319,21 @@ const licenseFilterLabel = computed(() => {
// Sort options
const sortOptions = computed(() => [
{
name: t('templateWorkflows.sort.alphabetical', 'A → Z'),
value: 'alphabetical'
name: t('templateWorkflows.sort.default', 'Default'),
value: 'default'
},
{ name: t('templateWorkflows.sort.newest', 'Newest'), value: 'newest' },
{
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', 'Model Size (Low to High)'),
value: 'model-size-low-to-high'
},
{
name: t('templateWorkflows.sort.alphabetical', 'Alphabetical (A-Z)'),
value: 'alphabetical'
}
])