From a6cf9f71303fe4202be515636c1b47418b8d64b0 Mon Sep 17 00:00:00 2001 From: shats Date: Mon, 16 Feb 2026 19:39:28 +0700 Subject: [PATCH] refactor(ServerManager): integrate PageHeaderActions for enhanced action handling and UI consistency in server management --- frontend/src/ServerManager.jsx | 71 ++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 24 deletions(-) diff --git a/frontend/src/ServerManager.jsx b/frontend/src/ServerManager.jsx index 292074e..8ecd055 100644 --- a/frontend/src/ServerManager.jsx +++ b/frontend/src/ServerManager.jsx @@ -34,6 +34,7 @@ import { ServerBulkActions } from './components/server/index.js'; import PageHeader from './components/PageHeader.jsx'; +import PageHeaderActions from './components/PageHeaderActions.jsx'; const API_URL = '/api'; @@ -550,6 +551,11 @@ function ServerManager() { } }; + const handleRefreshAll = () => { + fetchServers(); + fetchConnections(); + }; + // === Connections === const addConnectionInternal = (draft) => { if (!draft.from || !draft.to || !draft.tunnelType || !draft.ipA || !draft.ipB) { @@ -587,36 +593,53 @@ function ServerManager() { return (
} + meta={ + + Всего серверов: {servers.length} + + } actions={ -
-
+ <> + +
+
+ + +
-
- - - -
+ } />