Kategorie kann hinzugefügt weren
This commit is contained in:
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() {
|
||||
|
||||
|
||||
Reference in new issue
Block a user