From: charleswrayjr Date: Tue, 9 Sep 2025 15:34:37 +0000 (-0500) Subject: Separating the revoke client functionality from the main vpn lists. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=8a9cff66982bd0ebd178c1d0c8d506cc0a2e46c4;p=phs-admin.git Separating the revoke client functionality from the main vpn lists. --- diff --git a/src/app/views/VPN/VPN.jsx b/src/app/views/VPN/VPN.jsx index a8bdff8..059653c 100644 --- a/src/app/views/VPN/VPN.jsx +++ b/src/app/views/VPN/VPN.jsx @@ -52,7 +52,7 @@ const VPN = () => { setCreateOpen( false ); }; - const handleRevokeClientSubmit = async ( revokeClientName ) => { + const handleRevokeClientSubmit = async () => { setMessage( await VPNService.revokeClient( { revokeClientName }, fetchClients ) ); fetchAvailableClients().catch( e => setMessage( e ) ); }; @@ -63,7 +63,7 @@ const VPN = () => { setRevokeOpen(false)} - onConfirm={handleRevokeClientSubmit.bind(null, revokeClientName)} + onConfirm={handleRevokeClientSubmit} />} {createOpen && setCreateOpen(false)} onCreate={handleCreateClientSubmit}/>}