luci-mod-status: add `oneshot` handling
authorPaul Spooren <[email protected]>
Thu, 30 Jan 2025 23:33:46 +0000 (23:33 +0000)
committerPaul Donald <[email protected]>
Fri, 11 Apr 2025 12:42:49 +0000 (14:42 +0200)
commitffbce6fed77e74e6e18d40fa9dbda3ae5d5eaa8f
tree7e582fd8ba469eb15ad00a67594c3951ce83ced4
parent2967f2ccd8fd1582415a366462a2a1a224d203d8
luci-mod-status: add `oneshot` handling

This allows each include to perform an action a single time but doesn't
run it on each poll (instead running it once per page load). The
function receives all data loaded via the `load` function.

Signed-off-by: Paul Spooren <[email protected]>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/index.js