diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2022-09-12 16:11:38 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2022-09-12 16:12:22 +0200 |
commit | 74cf149544010645dd69f3e9029d0a181138a55a (patch) | |
tree | 4e74e691cd4d5db4ab073331296b7e7afc21e56c /applications/luci-app-ddns/htdocs/luci-static/resources | |
parent | 7bc7c8a49a07073d4ec0aeed217922c56a0fed31 (diff) |
luci-app-ddns: sort list of services
It makes it much easier to find selected service provider.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'applications/luci-app-ddns/htdocs/luci-static/resources')
-rw-r--r-- | applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js | 2 |
1 files changed, 2 insertions, 0 deletions
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 4b786e83c5..8a8c27c718 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 @@ -91,6 +91,8 @@ return view.extend({ _this.services[service.name.replace('.json','')] = true }); + this.services = Object.fromEntries(Object.entries(this.services).sort()); + list_service.forEach(function (service) { if (!_this.services[service]) _this.services[service] = false; |