From 66e8ac13ea79250937eac65802ef68f528067820 Mon Sep 17 00:00:00 2001 From: Tim Aldinger Date: Fri, 9 Oct 2026 21:32:53 +0200 Subject: [PATCH] =?UTF-8?q?liste=20wird=20nun=20in=20den=20listen=20hinzug?= =?UTF-8?q?ef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/js/pages/index/frontend/indexUI.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/resources/static/js/pages/index/frontend/indexUI.js b/src/main/resources/static/js/pages/index/frontend/indexUI.js index e69de29..4a924a4 100644 --- a/src/main/resources/static/js/pages/index/frontend/indexUI.js +++ b/src/main/resources/static/js/pages/index/frontend/indexUI.js @@ -0,0 +1,8 @@ +import { ShoppingList } from "../../../models/ShoppingList.js"; + + +export function addList(listAsJSON) { + const list = document.querySelector(".displayedList"); + const listElement = ShoppingList.fromJSON(listAsJSON); + list.append(listElement.render()); +}