juci-firewall: remove unsupported hidden option
authorSukru Senli <sukru.senli@inteno.se>
Tue, 2 Jan 2018 14:40:25 +0000 (15:40 +0100)
committerSukru Senli <sukru.senli@inteno.se>
Tue, 2 Jan 2018 14:40:25 +0000 (15:40 +0100)
plugins/juci-firewall-fw3/src/fw3-firewall.js
plugins/juci-firewall-fw3/src/pages/internet-firewall-rules.js

index 376446d..11f73ae 100644 (file)
@@ -285,7 +285,6 @@ UCI.firewall.$registerSectionType("rule", {
        "family":                       { dvalue: "any", type: String },
        "icmp_type":            { dvalue: [], type: Array },
        "enabled":                      { dvalue: true, type: Boolean },
-       "hidden":                       { dvalue: false, type: Boolean },
        "limit":                        { dvalue: "", type: String },
        // scheduling
        "parental":             { dvalue: false, type: Boolean },
index 8477135..4f289c5 100644 (file)
@@ -45,8 +45,7 @@ JUCI.app
        $scope.onCreateRule = function(){
                $uci.firewall.$create({
                        ".type": "rule", 
-                       "name": "new_rule",
-                       "hidden": true
+                       "name": "new_rule"
                }).done(function(rule){
                        $scope.rules.push(rule);
                        $scope.$apply();