diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 0da3097e..f0685cd2 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -37,7 +37,7 @@ const selectDecorator = (state: string): Colours => { switch (state) { case 'running': return 'ok'; - case 'shut_off': + case 'shut off': return 'off'; case 'crashed': return 'error'; @@ -86,7 +86,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { } /> - {server.server_state !== 'shut_off' && + {server.server_state !== 'shut off' && server.server_state !== 'crashed' && anvil[ anvil.findIndex((a) => a.anvil_uuid === uuid) diff --git a/striker-ui/lib/consts/SERVERS.ts b/striker-ui/lib/consts/SERVERS.ts index aba4b1c0..b010067c 100644 --- a/striker-ui/lib/consts/SERVERS.ts +++ b/striker-ui/lib/consts/SERVERS.ts @@ -2,10 +2,10 @@ const serverState: ReadonlyMap = new Map([ ['running', 'Running'], ['idle', 'Idle'], ['paused', 'Paused'], - ['in_shutdown', 'Shutting Down'], - ['shut_off', 'Off'], - ['crashed', 'crashed'], - ['pmsuspended', 'Suspended'], + ['in shutdown', 'Shutting Down'], + ['shut off', 'Off'], + ['crashed', 'Crashed'], + ['pmsuspended', 'PM Suspended'], ['migrating', 'Migrating'], ]); diff --git a/striker-ui/types/AnvilServers.d.ts b/striker-ui/types/AnvilServers.d.ts index 96413218..d8b3e88d 100644 --- a/striker-ui/types/AnvilServers.d.ts +++ b/striker-ui/types/AnvilServers.d.ts @@ -5,8 +5,8 @@ declare type AnvilServer = { | 'running' | 'idle' | 'paused' - | 'in_shutdown' - | 'shut_off' + | 'in shutdown' + | 'shut off' | 'crashed' | 'pmsuspended' | 'migrating';