summaryrefslogtreecommitdiffstats
path: root/ogcp/static/js/ogcp.js
Commit message (Collapse)AuthorAgeFilesLines
* Update scopes tree dynamicallyDaniel GarcĂ­a Moreno2021-07-071-0/+54
This patch adds a javascript function to update the scope tree (on/off) state. This javacript function is called every second, does a call to the new backend endpoint `/scopes/status` and updates the tree classes depending on the current data. The new `/scopes/status` endpoint just returns the scopes tree as json. This patch also adds an icon in the tree leafs, a filled green circle when the state is `on`, and a empty red circle when the state is `off`. There's also a new javascript function to unfold all collapses in the scope tree.