From b623902c19c838cfdc82400d0148bbe877f57b37 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Tue, 8 Nov 2022 21:14:25 -0500 Subject: [PATCH] Show danger alert to front end user --- .../components/server/console/ServerConsoleContainer.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/scripts/components/server/console/ServerConsoleContainer.tsx b/resources/scripts/components/server/console/ServerConsoleContainer.tsx index c3af78f1c..8306097f9 100644 --- a/resources/scripts/components/server/console/ServerConsoleContainer.tsx +++ b/resources/scripts/components/server/console/ServerConsoleContainer.tsx @@ -20,6 +20,7 @@ const ServerConsoleContainer = () => { const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring); const eggFeatures = ServerContext.useStoreState((state) => state.server.data!.eggFeatures, isEqual); const isNodeUnderMaintenance = ServerContext.useStoreState((state) => state.server.data!.isNodeUnderMaintenance); + const isSuspended = ServerContext.useStoreState((state) => state.server.data!.status === 'suspended'); return ( @@ -32,6 +33,11 @@ const ServerConsoleContainer = () => { : 'This server is currently being transferred to another node and all actions are unavailable.'} )} + {isSuspended && ( + + This server is currently suspended. + + )}

{name}