Fix webhooks panel: hide on app load to sync with status panel
All checks were successful
All checks were successful
This commit is contained in:
@@ -300,6 +300,9 @@ function showDashboard() {
|
|||||||
// Always start with status panel hidden (guards against stale display value on re-login)
|
// Always start with status panel hidden (guards against stale display value on re-login)
|
||||||
const sp = document.getElementById('status-panel');
|
const sp = document.getElementById('status-panel');
|
||||||
sp.style.display = 'none';
|
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';
|
document.getElementById('admin-controls').style.display = isAdmin ? 'flex' : 'none';
|
||||||
// Note: webhooks-section visibility is controlled by toggleStatusPanel()
|
// Note: webhooks-section visibility is controlled by toggleStatusPanel()
|
||||||
// Initialise days input from saved value
|
// Initialise days input from saved value
|
||||||
|
|||||||
Reference in New Issue
Block a user