fix(front): [WIP] use finished Pills list

This commit is contained in:
upsiflu 2025-03-12 20:39:57 +01:00
parent d0f42437ae
commit f1d6b11686
5 changed files with 10 additions and 9 deletions

View File

@ -47,7 +47,8 @@ const newValues = reactive({
})
const tagList = computed(() => ({
custom: newValues.tags
currents: newValues.tags.map(tag => ({ type: 'custom' as const, label: tag })),
others: [].map(tag => ({ type: 'custom' as const, label: tag }))
}))
const creating = computed(() => props.object === null)

View File

@ -50,8 +50,8 @@ const page = usePage()
const tags = useRouteQuery<string[]>('tag', [])
const tagList = ref({
current: [],
others: tags.value
currents: [].map(tag => ({ type: 'custom' as const, label: tag })),
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
})
const q = useRouteQuery('query', '')

View File

@ -49,8 +49,8 @@ const page = usePage()
const tags = useRouteQuery<string[]>('tag', [])
const tagList = computed(() => ({
current: [],
others: tags.value
currents: [].map(tag => ({ type: 'custom' as const, label: tag })),
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
}))
const q = useRouteQuery('query', '')

View File

@ -51,8 +51,8 @@ const page = usePage()
const tags = useRouteQuery<string[]>('tag', [])
const tagList = computed(() => ({
current: [],
others: tags.value
current: [].map(tag => ({ type: 'custom' as const, label: tag })),
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
}))
const q = useRouteQuery('query', '')

View File

@ -78,8 +78,8 @@ const createForm = ref()
const page = usePage()
const tags = useRouteQuery<string[]>('tag', [])
const tagList = computed(() => ({
current: [],
others: tags.value
currents: [].map(tag => ({ type: 'custom' as const, label: tag })),
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
}))
const { onOrderingUpdate, orderingString, paginateBy, ordering, orderingDirection } = useOrdering(props)