From fee9bc5d2695e2948c501370522df1d229b92dfd Mon Sep 17 00:00:00 2001 From: mAi Date: Sat, 16 May 2026 13:50:49 +0200 Subject: [PATCH] feat(ui): remove '+ Type' button from sidebar legend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cable type creation is managed via the admin modal (⚙ → Cable types tab), which makes the prominent sidebar affordance unnecessary. Drop the button element and its click handler; the legend itself (rows, edit button per row, active-type selection) is unchanged. --- web/static/index.html | 1 - web/static/main.js | 1 - 2 files changed, 2 deletions(-) diff --git a/web/static/index.html b/web/static/index.html index 6d86c62..6c9a489 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -36,7 +36,6 @@
-
diff --git a/web/static/main.js b/web/static/main.js index 1034e8b..5cf1d7b 100644 --- a/web/static/main.js +++ b/web/static/main.js @@ -3224,7 +3224,6 @@ async function boot() { bindCloseButtons($("#modal-admin")); $("#btn-new-project").addEventListener("click", openNewProjectModal); - $("#btn-add-type").addEventListener("click", () => openCableTypeModal(null)); $("#btn-delete-project").addEventListener("click", openDeleteProjectModal); $("#btn-admin").addEventListener("click", openAdminModal); $("#btn-solve").addEventListener("click", openSolveModal);