From 5135bcad5aad73cf1cdc577d77620bebcc274c73 Mon Sep 17 00:00:00 2001 From: Tim Aldinger Date: Sat, 10 Oct 2026 11:56:00 +0200 Subject: [PATCH] =?UTF-8?q?Name=20von=20navElement=20wird=20ge=C3=A4ndert?= =?UTF-8?q?=20wenn=20Listenname=20ge=C3=A4ndert=20wird?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/js/pages/index/frontend/indexUI.js | 3 +++ 1 file changed, 3 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 af7f11b..2d70e0e 100644 --- a/src/main/resources/static/js/pages/index/frontend/indexUI.js +++ b/src/main/resources/static/js/pages/index/frontend/indexUI.js @@ -37,6 +37,9 @@ export function editList(id, formElement, formData, listLi) { let newName = formData.newListName; + + document.querySelector(`.navbar__list[data-id='${listLi.dataset.id}'] > a`).textContent = newName; + listLi.querySelector(".list__name").textContent = newName; listLi.setAttribute("href", `/list/${id}`); formElement.replaceWith(listLi);