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>
This commit is contained in:
parent
7bc7c8a49a
commit
74cf149544
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue