luci-mod-system: expose table filters via flag

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>
This commit is contained in:
Paul Donald
2026-02-02 22:22:01 +01:00
parent 315dbfc749
commit d2511f4bfe

View 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
*/