luci-mod-system: expose table filters via flag
authorPaul Donald <newtwen+github@gmail.com>
Mon, 2 Feb 2026 21:22:01 +0000 (22:22 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 3 Feb 2026 05:42:16 +0000 (06:42 +0100)
Filters might not be everyone's aesthetics, so hide filters
by default and expose a global flag which can be set under
System -> System -> Language and Style. Only tables which
have .filterrow set to true will show filters.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js

index e0835d1f4a19613a98c66188e97be78607bfd9fb..bc6d736947cd6fae1ada5233a7a91776c52da2dc 100644 (file)
@@ -252,6 +252,12 @@ return view.extend({
                        if (k[i].charAt(0) != '.')
                                o.value(uci.get('luci', 'themes', k[i]), k[i]);
 
+               o = s.taboption('language', form.Flag, '_tablefilters', _('Table Filters'));
+               o.default = o.disabled;
+               o.uciconfig = 'luci';
+               o.ucisection = 'main';
+               o.ucioption = 'tablefilters';
+
                /*
                 * NTP
                 */