|
|
@ -248,16 +248,16 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { |
|
|
|
{!isLoading ? ( |
|
|
|
{!isLoading ? ( |
|
|
|
<Box className={classes.root}> |
|
|
|
<Box className={classes.root}> |
|
|
|
<List component="nav"> |
|
|
|
<List component="nav"> |
|
|
|
{data && |
|
|
|
{data?.servers.map((server: AnvilServer) => { |
|
|
|
data.servers.map((server: AnvilServer) => { |
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<ListItem |
|
|
|
<ListItem |
|
|
|
button |
|
|
|
button |
|
|
|
className={classes.button} |
|
|
|
className={classes.button} |
|
|
|
key={server.server_uuid} |
|
|
|
key={server.server_uuid} |
|
|
|
component="a" |
|
|
|
component={showCheckbox ? 'div' : 'a'} |
|
|
|
href={`/server?uuid=${server.server_uuid}&server_name=${server.server_name}`} |
|
|
|
href={`/server?uuid=${server.server_uuid}&server_name=${server.server_name}`} |
|
|
|
|
|
|
|
onClick={() => handleChange(server.server_uuid)} |
|
|
|
> |
|
|
|
> |
|
|
|
<Box display="flex" flexDirection="row" width="100%"> |
|
|
|
<Box display="flex" flexDirection="row" width="100%"> |
|
|
|
{showCheckbox && ( |
|
|
|
{showCheckbox && ( |
|
|
@ -266,11 +266,9 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { |
|
|
|
style={{ color: TEXT }} |
|
|
|
style={{ color: TEXT }} |
|
|
|
color="secondary" |
|
|
|
color="secondary" |
|
|
|
checked={ |
|
|
|
checked={ |
|
|
|
selected.find( |
|
|
|
selected.find((s) => s === server.server_uuid) !== |
|
|
|
(s) => s === server.server_uuid, |
|
|
|
undefined |
|
|
|
) !== undefined |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
onChange={() => handleChange(server.server_uuid)} |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|
)} |
|
|
|
)} |
|
|
@ -305,8 +303,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { |
|
|
|
<BodyText |
|
|
|
<BodyText |
|
|
|
text={host.host_name} |
|
|
|
text={host.host_name} |
|
|
|
selected={ |
|
|
|
selected={ |
|
|
|
server.server_host_uuid === |
|
|
|
server.server_host_uuid === host.host_uuid |
|
|
|
host.host_uuid |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|