luci-mod-network: Adjust DNS/DHCP tab order 6502/head
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 5 Aug 2023 16:00:34 +0000 (19:00 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 5 Aug 2023 16:05:57 +0000 (19:05 +0300)
Adjust the order of tabs in the DNS/DHCP page.
Based on estimated importance of tabs
* move common (old) tabs to be earlier
* move the less frequently used (new) tabs later

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index e1333d7954caffd1313bd0c125aa80a00ed144d9..82d7ae42e46839b6cd876a839464db1f22ac36ae 100644 (file)
@@ -254,16 +254,16 @@ return view.extend({
                s.addremove = false;
 
                s.tab('general', _('General Settings'));
-               s.tab('relay', _('Relay'));
-               s.tab('files', _('Resolv and Hosts Files'));
-               s.tab('pxe_tftp', _('PXE/TFTP Settings'));
                s.tab('advanced', _('Advanced Settings'));
                s.tab('leases', _('Static Leases'));
+               s.tab('files', _('Resolv and Hosts Files'));
                s.tab('hosts', _('Hostnames'));
+               s.tab('ipsets', _('IP Sets'));
+               s.tab('relay', _('Relay'));
                s.tab('srvhosts', _('SRV'));
                s.tab('mxhosts', _('MX'));
                s.tab('cnamehosts', _('CNAME'));
-               s.tab('ipsets', _('IP Sets'));
+               s.tab('pxe_tftp', _('PXE/TFTP Settings'));
 
                s.taboption('general', form.Flag, 'domainneeded',
                        _('Domain required'),