From 743b169989a5febf3153d202ffa9791e5007e33f Mon Sep 17 00:00:00 2001 From: Gronod Date: Tue, 19 May 2026 23:05:20 +0100 Subject: [PATCH] Fix webhooks panel: hide on app load to sync with status panel --- public/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app.js b/public/app.js index e8810fd..c9f75b3 100644 --- a/public/app.js +++ b/public/app.js @@ -300,6 +300,9 @@ function showDashboard() { // Always start with status panel hidden (guards against stale display value on re-login) const sp = document.getElementById('status-panel'); sp.style.display = 'none'; + // Also hide webhooks-section to keep them in sync (both show/hide together) + const webhooksSection = document.getElementById('webhooks-section'); + if (webhooksSection) webhooksSection.style.display = 'none'; document.getElementById('admin-controls').style.display = isAdmin ? 'flex' : 'none'; // Note: webhooks-section visibility is controlled by toggleStatusPanel() // Initialise days input from saved value