mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
refactor: update default sort option to 'newest'
This commit is contained in:
@@ -82,16 +82,18 @@
|
|||||||
</MultiSelect>
|
</MultiSelect>
|
||||||
|
|
||||||
<!-- Sort Options -->
|
<!-- Sort Options -->
|
||||||
<SingleSelect
|
<div class="absolute right-40">
|
||||||
v-model="sortBy"
|
<SingleSelect
|
||||||
:label="$t('templateWorkflows.sorting', 'Sort by')"
|
v-model="sortBy"
|
||||||
:options="sortOptions"
|
:label="$t('templateWorkflows.sorting', 'Sort by')"
|
||||||
class="w-[160px]"
|
:options="sortOptions"
|
||||||
>
|
class="w-[160px] -translate-x-full overlay-x-hidden"
|
||||||
<template #icon>
|
>
|
||||||
<i-lucide:arrow-up-down />
|
<template #icon>
|
||||||
</template>
|
<i-lucide:arrow-up-down />
|
||||||
</SingleSelect>
|
</template>
|
||||||
|
</SingleSelect>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -548,11 +550,11 @@ const licenseFilterLabel = computed(() => {
|
|||||||
|
|
||||||
// Sort options
|
// Sort options
|
||||||
const sortOptions = computed(() => [
|
const sortOptions = computed(() => [
|
||||||
|
{ name: t('templateWorkflows.sort.newest', 'Newest'), value: 'newest' },
|
||||||
{
|
{
|
||||||
name: t('templateWorkflows.sort.default', 'Default'),
|
name: t('templateWorkflows.sort.default', 'Default'),
|
||||||
value: 'default'
|
value: 'default'
|
||||||
},
|
},
|
||||||
{ name: t('templateWorkflows.sort.newest', 'Newest'), value: 'newest' },
|
|
||||||
{
|
{
|
||||||
name: t(
|
name: t(
|
||||||
'templateWorkflows.sort.vramLowToHigh',
|
'templateWorkflows.sort.vramLowToHigh',
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export function useTemplateFiltering(
|
|||||||
| 'newest'
|
| 'newest'
|
||||||
| 'vram-low-to-high'
|
| 'vram-low-to-high'
|
||||||
| 'model-size-low-to-high'
|
| 'model-size-low-to-high'
|
||||||
>('default')
|
>('newest')
|
||||||
|
|
||||||
const templatesArray = computed(() => {
|
const templatesArray = computed(() => {
|
||||||
const templateData = 'value' in templates ? templates.value : templates
|
const templateData = 'value' in templates ? templates.value : templates
|
||||||
|
|||||||
Reference in New Issue
Block a user