Add unconfigured client state to dashboard.php

Add tun device as client_udev_prototypes.json
This commit is contained in:
Christian Zeitnitz
2021-03-27 17:43:15 +01:00
parent 43043d48e4
commit 5b9d4ca814
6 changed files with 23 additions and 9 deletions

View File

@@ -300,6 +300,11 @@ $('#ovpn-confirm-activate').on('shown.bs.modal', function (e) {
$('.btn-activate', this).data('recordId', data.recordId);
});
// Add the following code if you want the name of the file appear on select
$(".custom-file-input").on("change", function() {
var fileName = $(this).val().split("\\").pop();
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
});
/*
Sets the wirelss channel select options based on hw_mode and country_code.