vpn and other changes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2025-07-18 19:13:00 +00:00
parent 669ae42c97
commit b23212df9c
2 changed files with 53 additions and 36 deletions

View File

@@ -29,6 +29,7 @@ function check_deployments() {
html_data += '<div id="'+service_name+'" class="deployment"></div>';
}
jQuery("#deployments").html(html_data);
document.getElementById('installAppsBtn').click();
}
});
@@ -109,12 +110,16 @@ function check_vpn() {
jQuery.get(url, function(data) {
console.log('check_vpn: '+data);
if (data=="2") {
document.getElementById('vpnToggle').checked = true;
document.querySelector(".switch-label").textContent = "ON";
$('#vpn_off').hide();
$('#vpn_on').show();
$('#pro_off').hide();
$('#pro_on').show();
}
else {
document.getElementById('vpnToggle').checked = false;
document.querySelector(".switch-label").textContent = "OFF";
$('#vpn_on').hide();
$('#vpn_off').show();
$('#pro_on').hide();