]> PHS Git Server - phs-admin.git/commitdiff
Separating the revoke client functionality from the main vpn lists.
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 15:34:37 +0000 (10:34 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 15:34:37 +0000 (10:34 -0500)
src/app/views/VPN/VPN.jsx

index a8bdff8efea0fe07a6cf0fcf1540ec7c692e0315..059653cbd26a5af6432de69ce565497d7cb0bfda 100644 (file)
@@ -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 = () => {
         <ConfirmRevoke
           open={revokeOpen}
           onClose={() => setRevokeOpen(false)}
-          onConfirm={handleRevokeClientSubmit.bind(null, revokeClientName)}
+          onConfirm={handleRevokeClientSubmit}
         />}
       <Button variant="contained" color="primary" onClick={() => setCreateOpen(true)}>Create Client</Button>
       {createOpen && <CreateVPNClientDialog open={createOpen} onClose={() => setCreateOpen(false)} onCreate={handleCreateClientSubmit}/>}