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 ? - -
- - + { + (() => { + if (isInstalling) { + return
+ +

+ This server is currently running its installation process and most actions are + unavailable. +

+
+
+ } else if (isSuspended) { + return
+ +

+ This server is currently suspended and the functionality requested is unavailable. +

+
+
+ } else { + return +
+ + + + + + + + sendPowerCommand(action)}/> + +
- - - - - sendPowerCommand(action)}/> - -
-
- : -
- -

- This server is currently running its installation process and most actions are - unavailable. -

-
-
+ } + })() }