Merge pull request #5970 from rmilecki/ddns-sort-services

luci-app-ddns: sort list of services
This commit is contained in:
Florian Eckert 2022-09-14 09:20:40 +02:00 committed by GitHub
commit 0db66851e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;