mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fix Telecomms machine browser and log browser.
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
data["network"] = network
|
||||
data["temp"] = temp
|
||||
|
||||
var/list/servers = list()
|
||||
var/list/serverData = list()
|
||||
for(var/obj/machinery/telecomms/T in servers)
|
||||
servers.Add(list(list(
|
||||
serverData.Add(list(list(
|
||||
"id" = T.id,
|
||||
"name" = T.name,
|
||||
)))
|
||||
data["servers"] = servers
|
||||
data["servers"] = serverData
|
||||
|
||||
data["selectedServer"] = null
|
||||
if(SelectedServer)
|
||||
|
||||
@@ -26,13 +26,13 @@
|
||||
data["network"] = network
|
||||
data["temp"] = temp
|
||||
|
||||
var/list/machinelist = list()
|
||||
var/list/machinelistData = list()
|
||||
for(var/obj/machinery/telecomms/T in machinelist)
|
||||
machinelist.Add(list(list(
|
||||
machinelistData.Add(list(list(
|
||||
"id" = T.id,
|
||||
"name" = T.name,
|
||||
)))
|
||||
data["machinelist"] = machinelist
|
||||
data["machinelist"] = machinelistData
|
||||
|
||||
data["selectedMachine"] = null
|
||||
if(SelectedMachine)
|
||||
|
||||
@@ -21,10 +21,10 @@ export const TelecommsLogBrowser = (props, context) => {
|
||||
height={450}
|
||||
resizable>
|
||||
<Window.Content scrollable>
|
||||
{(temp && temp.length) ? (
|
||||
<NoticeBox warning>
|
||||
{temp ? (
|
||||
<NoticeBox danger={temp.color === "bad"} warning={temp.color !== "bad"}>
|
||||
<Box display="inline-box" verticalAlign="middle">
|
||||
{temp}
|
||||
{temp.text}
|
||||
</Box>
|
||||
<Button
|
||||
icon="times-circle"
|
||||
@@ -97,7 +97,7 @@ const TelecommsServerSelection = (props, context) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<Section title="Detected Telecommunication Servers">
|
||||
<Section title="Detected Telecommunications Servers">
|
||||
<LabeledList>
|
||||
{servers.map(server => (
|
||||
<LabeledList.Item
|
||||
|
||||
@@ -20,10 +20,10 @@ export const TelecommsMachineBrowser = (props, context) => {
|
||||
height={450}
|
||||
resizable>
|
||||
<Window.Content scrollable>
|
||||
{(temp && temp.length) ? (
|
||||
<NoticeBox warning>
|
||||
{temp ? (
|
||||
<NoticeBox danger={temp.color === "bad"} warning={temp.color !== "bad"}>
|
||||
<Box display="inline-box" verticalAlign="middle">
|
||||
{temp}
|
||||
{temp.text}
|
||||
</Box>
|
||||
<Button
|
||||
icon="times-circle"
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user