mirror of
https://github.com/ngoduykhanh/wireguard-ui
synced 2024-06-02 14:02:13 +02:00
Further Apply config visibility fixes. Fixed tag input being too small.
This commit is contained in:
parent
2027b3fa5d
commit
3a789bf067
|
@ -377,10 +377,10 @@
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
addGlobalStyle(`
|
addGlobalStyle(`
|
||||||
.toast-top-right-fix {
|
.toast-top-right-fix {
|
||||||
top: 67px;
|
top: 67px;
|
||||||
right: 12px;
|
right: 12px;
|
||||||
}
|
}
|
||||||
`, 'toastrToastStyleFix')
|
`, 'toastrToastStyleFix')
|
||||||
|
|
||||||
toastr.options.closeDuration = 100;
|
toastr.options.closeDuration = 100;
|
||||||
|
@ -493,6 +493,7 @@
|
||||||
if (window.location.pathname === "{{.basePath}}/") {
|
if (window.location.pathname === "{{.basePath}}/") {
|
||||||
populateClient(resp.id);
|
populateClient(resp.id);
|
||||||
}
|
}
|
||||||
|
updateApplyConfigVisibility()
|
||||||
},
|
},
|
||||||
error: function(jqXHR, exception) {
|
error: function(jqXHR, exception) {
|
||||||
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
||||||
|
|
|
@ -253,12 +253,14 @@ Wireguard Clients
|
||||||
setClientStatus(clientID, true);
|
setClientStatus(clientID, true);
|
||||||
const divElement = document.getElementById("paused_" + clientID);
|
const divElement = document.getElementById("paused_" + clientID);
|
||||||
divElement.style.visibility = "hidden";
|
divElement.style.visibility = "hidden";
|
||||||
|
updateApplyConfigVisibility()
|
||||||
}
|
}
|
||||||
|
|
||||||
function pauseClient(clientID) {
|
function pauseClient(clientID) {
|
||||||
setClientStatus(clientID, false);
|
setClientStatus(clientID, false);
|
||||||
const divElement = document.getElementById("paused_" + clientID);
|
const divElement = document.getElementById("paused_" + clientID);
|
||||||
divElement.style.visibility = "visible";
|
divElement.style.visibility = "visible";
|
||||||
|
updateApplyConfigVisibility()
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateSubnetRangesList() {
|
function updateSubnetRangesList() {
|
||||||
|
@ -460,6 +462,7 @@ Wireguard Clients
|
||||||
toastr.success('Removed client successfully');
|
toastr.success('Removed client successfully');
|
||||||
const divElement = document.getElementById('client_' + client_id);
|
const divElement = document.getElementById('client_' + client_id);
|
||||||
divElement.style.display = "none";
|
divElement.style.display = "none";
|
||||||
|
updateApplyConfigVisibility()
|
||||||
},
|
},
|
||||||
error: function(jqXHR, exception) {
|
error: function(jqXHR, exception) {
|
||||||
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
const responseJson = jQuery.parseJSON(jqXHR.responseText);
|
||||||
|
|
Loading…
Reference in a new issue