From 850fcaf0b9d65fe82c1bfbc32b508e91ad36358f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 8 Oct 2021 19:55:39 +0200 Subject: [PATCH] luci-app-smartdns: explicitly require `view` class Signed-off-by: Jo-Philipp Wich (cherry picked from commit 5d10e3de385261d58944f051527e8cf588a9602d) --- .../htdocs/luci-static/resources/view/smartdns/smartdns.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js b/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js index 549482b469..da0b974420 100644 --- a/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js +++ b/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js @@ -22,6 +22,7 @@ 'require uci'; 'require form'; 'require rpc'; +'require view'; var conf = 'smartdns'; var callServiceList = rpc.declare({ @@ -115,7 +116,7 @@ function smartdnsRenderStatus(res) { return renderHTML; } -return L.view.extend({ +return view.extend({ load: function () { return Promise.all([ uci.load('smartdns'),