Kategorie kann hinzugefügt weren

This commit is contained in:
Technoir committed 2026-10-05 21:53:08 +02:00
1 parent 77b5ed5991
commit 821f5c7216
1 file changed
+6
@@ -9,6 +9,12 @@ function addItem(itemName, itemAmount, categoryID) {
ui.addItem();
}
function addCategory(categoryName) {
console.log(`adding category ${categoryName}`)
api.addCategory(currentList.id, categoryName);
ui.addCategory(categoryName);
return 0;
}
function init() {