From 9b718806294194d6085adea1557c66078b7f9923 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Apr 2020 22:13:33 +0200 Subject: [PATCH] luci-base: expose currently dispatched node info to client side JS Signed-off-by: Jo-Philipp Wich (cherry picked from commit 94a0c571810da25043ca3599561bd9b369c0c65e) --- modules/luci-base/luasrc/view/header.htm | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/luci-base/luasrc/view/header.htm b/modules/luci-base/luasrc/view/header.htm index be18d3dec..e7b2d4787 100644 --- a/modules/luci-base/luasrc/view/header.htm +++ b/modules/luci-base/luasrc/view/header.htm @@ -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), -- 2.25.1