diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index 8c86bf217942..c8643b013d36 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -586,6 +586,7 @@ return view.extend({ return _this.handleGetServiceData(service).then(L.bind(function (service_data) { s.service_available = true; s.service_supported = true; + s.url = null; if (service != '-') { if (!service_data) @@ -594,6 +595,11 @@ return view.extend({ service_data = JSON.parse(service_data); if (ipv6 == "1" && !service_data.ipv6) s.service_supported = false; + else if (ipv6 == "1") { + s.url = service_data.ipv6.url; + } else { + s.url = service_data.ipv4.url; + } } } @@ -674,6 +680,11 @@ return view.extend({ }; } + if (Boolean(s.url)) { + o = s.taboption('basic', form.DummyValue, '_url', _("Update URL")); + o.default = s.url; + } + var service_switch = s.taboption('basic', form.Button, '_switch_proto'); service_switch.modalonly = true; service_switch.title = _('Really switch service?');