luci-app-firewall: tools/firewall.js: honour readonly property
authorJo-Philipp Wich <jo@mein.io>
Mon, 13 Apr 2020 15:36:16 +0000 (17:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Apr 2020 15:09:12 +0000 (17:09 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js

index e85b6bc6eac114c7828a326b63ca557efa30b4fe..32998c2ff899a20050ab70d88e385b713b865344 100644 (file)
@@ -537,6 +537,7 @@ return baseclass.extend({
                                display_items: 10,
                                dropdown_items: -1,
                                create: true,
+                               disabled: (this.readonly != null) ? this.readonly : this.map.readonly,
                                validate: function(value) {
                                        var v = L.toArray(value);