]> PHS Git Server - phs-admin.git/commitdiff
Adding available clients section to VPN page.
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 14:04:48 +0000 (09:04 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 14:04:48 +0000 (09:04 -0500)
src/app/views/VPN/VPN.jsx

index 6052d8ae38dbde838356c1f20c9ce1fd383f755f..95f1967778394d35044e1d8793aa203a85f57076 100644 (file)
@@ -99,7 +99,10 @@ const VPN = () => {
         columns={[
           { accessorKey: 'clientName', header: 'Name' },
           { accessorKey: 'staticIp', header: 'IP' },
-          { accessorKey: 'hasCertificate', header: 'Active Certificate' },
+          { accessorFn: row => {
+            console.log(row.hasCertificate);
+              return row.hasCertificate ? 'Yes' : 'No';
+            }, header: 'Active Certificate' },
           { accessorFn: row => clients.find( c => c.name === row.clientName ), header: 'Connected' },
         ]}
         data={availableClients}