From cd3363fc99b8deecdb92b71c3c945a45b6a4c19d Mon Sep 17 00:00:00 2001 From: Oreo Oreoniv <28255085+zKoz210@users.noreply.github.com> Date: Tue, 22 Sep 2020 13:37:40 +0300 Subject: [PATCH] Hiding buttons and adding a message --- .../components/server/ServerConsole.tsx | 103 ++++++++++-------- 1 file changed, 58 insertions(+), 45 deletions(-) diff --git a/resources/scripts/components/server/ServerConsole.tsx b/resources/scripts/components/server/ServerConsole.tsx index 05c10041..a27bcdea 100644 --- a/resources/scripts/components/server/ServerConsole.tsx +++ b/resources/scripts/components/server/ServerConsole.tsx @@ -25,6 +25,7 @@ export default () => { const name = ServerContext.useStoreState(state => state.server.data!.name); const limits = ServerContext.useStoreState(state => state.server.data!.limits); const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling); + const isSuspended = ServerContext.useStoreState(state => state.server.data!.isSuspended); const status = ServerContext.useStoreState(state => state.status.value); const connected = ServerContext.useStoreState(state => state.socket.connected); @@ -89,52 +90,64 @@ export default () => { / {disklimit}
- {!isInstalling ? -+ This server is currently running its installation process and most actions are + unavailable. +
++ This server is currently suspended and the functionality requested is unavailable. +
+- This server is currently running its installation process and most actions are - unavailable. -
-