luci-app-smartdns: explicitly require `view` class
authorJo-Philipp Wich <jo@mein.io>
Fri, 8 Oct 2021 17:55:39 +0000 (19:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 22 Oct 2021 18:36:31 +0000 (20:36 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d10e3de385261d58944f051527e8cf588a9602d)

applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js

index 549482b469f5f156a18dacb8e7636688d5c49c35..da0b9744201c4f112f2255640e12570e32cf8c88 100644 (file)
@@ -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'),