addItem ruft api und ui addItem auf mit richtigen parameter + logging
This commit is contained in:
1 parent
ea3b07ed0f
commit
6175817db2
1 file changed
+5
@@ -5,6 +5,11 @@ import * as ui from "./listFrontend.js"
|
||||
|
||||
const currentList = document.querySelector(".list");
|
||||
|
||||
function addItem(itemName, itemAmount, categoryID) {
|
||||
console.log(`${currentList.id}, ${itemName}, ${itemAmount}, ${categoryID}`)
|
||||
api.addItem(currentList.id, itemName, itemAmount, categoryID);
|
||||
ui.addItem();
|
||||
}
|
||||
|
||||
|
||||
function init() {
|
||||
|
||||
Reference in new issue
Block a user