vorabgreifen für bearbeiten und löschen von listen
This commit is contained in:
1 parent
b5d61ff772
commit
5a48acba2f
1 file changed
+3
-8
@@ -10,17 +10,12 @@ async function addList(listName) {
|
||||
if (listAsJson) ui.addList(listAsJson);
|
||||
}
|
||||
|
||||
function fillList() {
|
||||
document.querySelectorAll('.shoppingListOverview__shoppingList')
|
||||
.forEach(list => {
|
||||
shoppingLists.push(new ShoppingList(list.id));
|
||||
console.log(list.id);
|
||||
});
|
||||
function editList() {
|
||||
|
||||
}
|
||||
|
||||
function deleteList(id) {
|
||||
fetch(`/api/list/${id}`, { method: "DELETE" }).then(r => console.log("Liste entfernt"))
|
||||
function deleteList() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user