[Web GUI] How to hide config path at applying

Hi,

I want to hide config path (e.g. /etc/config/network) when config is applying. But I have no idea which code I have to modify to hide it. It seems like not in "apply_xhr.htm". Can anyone can help me? Thanks.

==================================
Applying changes
"Loading" Waiting for changes to be applied...
...
"Loading"/etc/config/network
...
Configuration applied

It seems like we can set e.innerHTML to "" (of apply_xhr.htm) as below. Thanks.

                                                            if( e && x.responseText ) e.innerHTML = "";

Go to luci\controller\admin\servicectl.lua in the page you can see a function action_status().
function action_status()
local data = nixio.fs.readfile("/var/run/luci-reload-status")
if data then
luci.http.write("/etc/config/")
luci.http.write(data)
else
luci.http.write("finish")
end
end

Remove the bold text. if you want to print some text instead of the config name you can use luci.http.write() function.

1 Like