This commit is contained in:
Oscar
2026-06-04 14:37:19 +03:00
parent 2d665fab66
commit 1c69ff56bb
7 changed files with 247 additions and 45 deletions

View File

@@ -72,6 +72,7 @@ const {
deselectItem,
reorderItem,
addItem,
addItemByValue,
} = useItems()
onMounted(() => {
@@ -94,8 +95,10 @@ async function handleReorder(id: number, afterId: number | null): Promise<void>
await reorderItem(id, afterId)
}
async function handleAdd(id: number) {
await addItem(id)
async function handleAdd(value: string) {
const item = await addItemByValue(value)
leftSearch.value = item.value
await fetchLeft(true)
}
</script>