From 8f6725a700a6adabc888f92bab75ff627670b81b Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 23:17:16 +0100 Subject: [PATCH] Add missing window.toggleIndicatorExpand function The toggleIndicatorExpand function was called in the HTML template and event listener but was never defined. Added the function definition which toggles configuringId between the clicked indicator ID and null, then re-renders the panel to show/hide settings. --- src/api/dashboard/static/js/ui/indicators-panel-new.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/dashboard/static/js/ui/indicators-panel-new.js b/src/api/dashboard/static/js/ui/indicators-panel-new.js index 96d8405..33a85e6 100644 --- a/src/api/dashboard/static/js/ui/indicators-panel-new.js +++ b/src/api/dashboard/static/js/ui/indicators-panel-new.js @@ -448,6 +448,11 @@ function setupEventListeners() { } // Actions +window.toggleIndicatorExpand = function(id) { + configuringId = configuringId === id ? null : id; + renderIndicatorPanel(); +}; + window.clearSearch = function() { searchQuery = ''; renderIndicatorPanel();