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

@@ -114,6 +114,10 @@ export function useItems() {
await Promise.all([fetchLeft(true), fetchRight(true)])
}
async function addItemByValue(value: string): Promise<{ id: number; value: string }> {
return await client.api.itemsAddValueCreate({ value })
}
return {
leftItems,
leftItemsTotal,
@@ -131,5 +135,6 @@ export function useItems() {
deselectItem,
reorderItem,
addItem,
addItemByValue,
}
}