openvpn: widget style tweaks

This commit is contained in:
Franco Fichtner 2023-06-05 08:24:59 +02:00
parent a7b1a70533
commit a0f2e8fac8

View File

@ -29,7 +29,6 @@
require_once("guiconfig.inc");
require_once("plugins.inc.d/openvpn.inc");
function openvpn_config()
{
global $config;
@ -74,7 +73,6 @@ function openvpn_config()
return $result;
}
$openvpn_status = json_decode(configd_run('openvpn connections client,server'), true) ?? [];
$openvpn_cfg = openvpn_config();
foreach ($openvpn_cfg as $section => &$ovpncfg) {
@ -85,6 +83,7 @@ foreach ($openvpn_cfg as $section => &$ovpncfg) {
}
}
}
?>
<script>
$("#dashboard_container").on("WidgetsReady", function() {