From 3a789bf067b8aa7f0cfc145a85c15f2f9b1d2750 Mon Sep 17 00:00:00 2001 From: 0xCA Date: Mon, 6 Nov 2023 02:55:07 +0500 Subject: [PATCH] Further Apply config visibility fixes. Fixed tag input being too small. --- templates/base.html | 9 +++++---- templates/clients.html | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/base.html b/templates/base.html index 5821cc6..a62e511 100644 --- a/templates/base.html +++ b/templates/base.html @@ -377,10 +377,10 @@ $(document).ready(function () { addGlobalStyle(` - .toast-top-right-fix { - top: 67px; - right: 12px; - } +.toast-top-right-fix { + top: 67px; + right: 12px; +} `, 'toastrToastStyleFix') toastr.options.closeDuration = 100; @@ -493,6 +493,7 @@ if (window.location.pathname === "{{.basePath}}/") { populateClient(resp.id); } + updateApplyConfigVisibility() }, error: function(jqXHR, exception) { const responseJson = jQuery.parseJSON(jqXHR.responseText); diff --git a/templates/clients.html b/templates/clients.html index 570b0aa..b174098 100644 --- a/templates/clients.html +++ b/templates/clients.html @@ -253,12 +253,14 @@ Wireguard Clients setClientStatus(clientID, true); const divElement = document.getElementById("paused_" + clientID); divElement.style.visibility = "hidden"; + updateApplyConfigVisibility() } function pauseClient(clientID) { setClientStatus(clientID, false); const divElement = document.getElementById("paused_" + clientID); divElement.style.visibility = "visible"; + updateApplyConfigVisibility() } function updateSubnetRangesList() { @@ -460,6 +462,7 @@ Wireguard Clients toastr.success('Removed client successfully'); const divElement = document.getElementById('client_' + client_id); divElement.style.display = "none"; + updateApplyConfigVisibility() }, error: function(jqXHR, exception) { const responseJson = jQuery.parseJSON(jqXHR.responseText);