luci-base: expose currently dispatched node info to client side JS
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 20:13:33 +0000 (22:13 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:50 +0000 (19:40 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 94a0c571810da25043ca3599561bd9b369c0c65e)

modules/luci-base/luasrc/view/header.htm

index be18d3dec258a99b4e46d2e0b68e64e9565414d0..e7b2d4787bfccb6c4ee06131a5ce64700e853a7a 100644 (file)
@@ -28,6 +28,7 @@
                pollinterval   = luci.config.main.pollinterval or 5,
                ubuspath       = luci.config.main.ubuspath or '/ubus/',
                sessionid      = luci.dispatcher.context.authsession,
+               nodespec       = luci.dispatcher.context.dispatched,
                apply_rollback = math.max(applyconf and applyconf.rollback or 30, 30),
                apply_holdoff  = math.max(applyconf and applyconf.holdoff or 4, 1),
                apply_timeout  = math.max(applyconf and applyconf.timeout or 5, 1),