From: Paul Donald Date: Mon, 2 Feb 2026 21:22:01 +0000 (+0100) Subject: luci-mod-system: expose table filters via flag X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d2511f4bfe595b28935159bc09f979f777e19cc8;p=project%2Fluci.git 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 --- diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js index e0835d1f4a..bc6d736947 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js @@ -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 */