diff --git a/resources/scripts/components/server/ServerConsole.tsx b/resources/scripts/components/server/ServerConsole.tsx
index 854644f2e..344862743 100644
--- a/resources/scripts/components/server/ServerConsole.tsx
+++ b/resources/scripts/components/server/ServerConsole.tsx
@@ -16,6 +16,29 @@ const GreyBox = styled.div`
const ChunkedConsole = lazy(() => import('@/components/server/Console'));
+const StopOrKillButton = ({ onPress }: { onPress: (action: string) => void }) => {
+ const [ clicked, setClicked ] = useState(false);
+ const status = ServerContext.useStoreState(state => state.status.value);
+
+ useEffect(() => {
+ setClicked(state => ['stopping'].indexOf(status) < 0 ? false : state);
+ }, [status]);
+
+ return (
+
+ );
+};
+
export default () => {
const [ memory, setMemory ] = useState(0);
const [ cpu, setCpu ] = useState(0);
@@ -114,16 +137,7 @@ export default () => {
>
Restart
-
+ sendPowerCommand(action)}/>