fix(front): [WIP] use finished Pills list
This commit is contained in:
parent
d0f42437ae
commit
f1d6b11686
|
@ -47,7 +47,8 @@ const newValues = reactive({
|
||||||
})
|
})
|
||||||
|
|
||||||
const tagList = computed(() => ({
|
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)
|
const creating = computed(() => props.object === null)
|
||||||
|
|
|
@ -50,8 +50,8 @@ const page = usePage()
|
||||||
const tags = useRouteQuery<string[]>('tag', [])
|
const tags = useRouteQuery<string[]>('tag', [])
|
||||||
|
|
||||||
const tagList = ref({
|
const tagList = ref({
|
||||||
current: [],
|
currents: [].map(tag => ({ type: 'custom' as const, label: tag })),
|
||||||
others: tags.value
|
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
|
||||||
})
|
})
|
||||||
|
|
||||||
const q = useRouteQuery('query', '')
|
const q = useRouteQuery('query', '')
|
||||||
|
|
|
@ -49,8 +49,8 @@ const page = usePage()
|
||||||
const tags = useRouteQuery<string[]>('tag', [])
|
const tags = useRouteQuery<string[]>('tag', [])
|
||||||
|
|
||||||
const tagList = computed(() => ({
|
const tagList = computed(() => ({
|
||||||
current: [],
|
currents: [].map(tag => ({ type: 'custom' as const, label: tag })),
|
||||||
others: tags.value
|
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const q = useRouteQuery('query', '')
|
const q = useRouteQuery('query', '')
|
||||||
|
|
|
@ -51,8 +51,8 @@ const page = usePage()
|
||||||
const tags = useRouteQuery<string[]>('tag', [])
|
const tags = useRouteQuery<string[]>('tag', [])
|
||||||
|
|
||||||
const tagList = computed(() => ({
|
const tagList = computed(() => ({
|
||||||
current: [],
|
current: [].map(tag => ({ type: 'custom' as const, label: tag })),
|
||||||
others: tags.value
|
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const q = useRouteQuery('query', '')
|
const q = useRouteQuery('query', '')
|
||||||
|
|
|
@ -78,8 +78,8 @@ const createForm = ref()
|
||||||
const page = usePage()
|
const page = usePage()
|
||||||
const tags = useRouteQuery<string[]>('tag', [])
|
const tags = useRouteQuery<string[]>('tag', [])
|
||||||
const tagList = computed(() => ({
|
const tagList = computed(() => ({
|
||||||
current: [],
|
currents: [].map(tag => ({ type: 'custom' as const, label: tag })),
|
||||||
others: tags.value
|
others: tags.value.map(tag => ({ type: 'custom' as const, label: tag }))
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const { onOrderingUpdate, orderingString, paginateBy, ordering, orderingDirection } = useOrdering(props)
|
const { onOrderingUpdate, orderingString, paginateBy, ordering, orderingDirection } = useOrdering(props)
|
||||||
|
|
Loading…
Reference in New Issue