From ec91c7295f56853d7f324cdfcb049fd6f293a31f Mon Sep 17 00:00:00 2001 From: Jens van de Wiel Date: Sat, 4 Nov 2023 15:24:53 +0100 Subject: [PATCH] added frontend --- frontend/src/pages/Server.tsx | 4 ++-- frontend/src/pages/server/Administration.tsx | 2 +- frontend/src/pages/server/Settings.tsx | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Server.tsx b/frontend/src/pages/Server.tsx index d33e1a0..54c3c26 100644 --- a/frontend/src/pages/Server.tsx +++ b/frontend/src/pages/Server.tsx @@ -187,12 +187,12 @@ export const Server = ({id, className}: Props) => { Console General Settings - {/*Server Settings*/} + Server Settings Administration - {/**/} + CheckServerInstalled(serv.id).then((val) => setIsInstalled(val)).catch((reason) => console.error(reason))}/> ) : ( setIsInstalled(true)}/>)} diff --git a/frontend/src/pages/server/Administration.tsx b/frontend/src/pages/server/Administration.tsx index 1ea1c3e..d6f7223 100644 --- a/frontend/src/pages/server/Administration.tsx +++ b/frontend/src/pages/server/Administration.tsx @@ -47,7 +47,7 @@ export function Administration({setServ, serv, onServerFilesDeleted}: Props) { return ( - + Server Administration diff --git a/frontend/src/pages/server/Settings.tsx b/frontend/src/pages/server/Settings.tsx index f7492f4..f4e8a45 100644 --- a/frontend/src/pages/server/Settings.tsx +++ b/frontend/src/pages/server/Settings.tsx @@ -33,6 +33,11 @@ export function Settings({setServ, serv}: Props) {
Mods (e.g.: modid1,modid2,modid3) setServ((p) => ({ ...p, mods: e.target.value }))}> + Player limit + { + if (parseInt(e.target.value) > 0) { + setServ((p) => ({...p, maxPlayers: parseInt(e.target.value)})) + }}}>