juci-ddns: change domain option to lookup_host due to backend change ref #14814
authorReidar Cederqvist <reidar.cederqvist@gmail.com>
Mon, 30 Apr 2018 09:24:50 +0000 (11:24 +0200)
committerReidar Cederqvist <reidar.cederqvist@gmail.com>
Mon, 30 Apr 2018 09:24:50 +0000 (11:24 +0200)
plugins/juci-ddns/src/juci-ddns.js
plugins/juci-ddns/src/widgets/ddns-network-settings-edit.html

index d6ee36e..0f7909d 100644 (file)
 
 UCI.$registerConfig("ddns");
 UCI.ddns.$registerSectionType("service", {
-       "enabled":              { dvalue: false, type: Boolean },
-       "interface":            { dvalue: "", type: String },
-       "use_syslog":           { dvalue: false, type: Boolean },
-       "service_name":         { dvalue: "", type: String },
-       "domain":               { dvalue: "", type: String },
-       "username":             { dvalue: "", type: String },
-       "password":             { dvalue: "", type: String },
-       "use_https":                    { dvalue: false, type: Boolean },
-       "force_interval":               { dvalue: 72, type: Number }, 
-       "force_unit":                   { dvalue: "hours", type: String },
-       "check_interval":               { dvalue: 10, type: Number },
-       "check_unit":                   { dvalue: "minutes", type: String }, 
-       "retry_interval":               { dvalue: 60, type: Number },
-       "retry_unit":                   { dvalue: "seconds", type: String },
-       "ip_source":                    { dvalue: "interface", type: String },
-       "ip_network":                   { dvalue: "", type: String },
-       "ip_script":                    { dvalue: "", type: String },
-       "ip_url":                               { dvalue: "", type: String },
-       "update_url":                   { dvalue: "", type: String }
+       "enabled":              { dvalue: false, type: Boolean },
+       "interface":            { dvalue: "", type: String },
+       "use_syslog":           { dvalue: false, type: Boolean },
+       "service_name":         { dvalue: "", type: String },
+       // this is deprecated in 4.X
+       "domain":               { dvalue: "", type: String },
+       "lookup_host":          { dvalue: "", type: String },
+       "username":             { dvalue: "", type: String },
+       "password":             { dvalue: "", type: String },
+       "use_https":            { dvalue: false, type: Boolean },
+       "force_interval":       { dvalue: 72, type: Number },
+       "force_unit":           { dvalue: "hours", type: String },
+       "check_interval":       { dvalue: 10, type: Number },
+       "check_unit":           { dvalue: "minutes", type: String },
+       "retry_interval":       { dvalue: 60, type: Number },
+       "retry_unit":           { dvalue: "seconds", type: String },
+       "ip_source":            { dvalue: "interface", type: String },
+       "ip_network":           { dvalue: "", type: String },
+       "ip_script":            { dvalue: "", type: String },
+       "ip_url":               { dvalue: "", type: String },
+       "update_url":           { dvalue: "", type: String }
 });
index 55e2c79..47de30c 100644 (file)
@@ -34,7 +34,7 @@
                        </div>
                </juci-config-line>
                <juci-config-line title="{{'Domain name'|translate}}">
-                       <input type="text" class="form-control" ng-model="ddns.domain.value" placeholder="{{'Domain name'|translate}}" />
+                       <input type="text" class="form-control" ng-model="ddns.lookup_host.value" placeholder="{{'Domain name'|translate}}" />
                </juci-config-line>
                <juci-config-line title="{{'Username'|translate}}">
                        <input type="text" class="form-control" ng-model="ddns.username.value" placeholder="{{'Username'|translate}}" />