mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-28 02:53:11 +00:00
[MIRROR] RD Console DesignDisk Fix (#7313)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com> Co-authored-by: Selis <selis@xynolabs.com>
This commit is contained in:
@@ -143,7 +143,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|||||||
if(!emagged)
|
if(!emagged)
|
||||||
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
|
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
|
||||||
emagged = 1
|
emagged = 1
|
||||||
to_chat(user, "<span class='notice'>You you disable the security protocols.</span>")
|
to_chat(user, "<span class='notice'>You disable the security protocols.</span>")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
/obj/machinery/computer/rdconsole/proc/GetResearchLevelsInfo()
|
/obj/machinery/computer/rdconsole/proc/GetResearchLevelsInfo()
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ const TechDisk = (props, context) => {
|
|||||||
const DataDisk = (props, context) => {
|
const DataDisk = (props, context) => {
|
||||||
const { act, data } = useBackend(context);
|
const { act, data } = useBackend(context);
|
||||||
|
|
||||||
const { designs } = data.info;
|
const { designs } = data;
|
||||||
|
|
||||||
const { disk } = props;
|
const { disk } = props;
|
||||||
|
|
||||||
@@ -233,6 +233,7 @@ const DataDisk = (props, context) => {
|
|||||||
onInput={(e, v) => act('search', { search: v })}
|
onInput={(e, v) => act('search', { search: v })}
|
||||||
mb={1}
|
mb={1}
|
||||||
/>
|
/>
|
||||||
|
{(designs && designs.length && (
|
||||||
<LabeledList>
|
<LabeledList>
|
||||||
{designs.map((item) => (
|
{designs.map((item) => (
|
||||||
<LabeledList.Item label={item.name} key={item.name}>
|
<LabeledList.Item label={item.name} key={item.name}>
|
||||||
@@ -247,6 +248,7 @@ const DataDisk = (props, context) => {
|
|||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
))}
|
))}
|
||||||
</LabeledList>
|
</LabeledList>
|
||||||
|
)) || <Box color="warning">No designs found.</Box>}
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ const TechDisk = (props, context) => {
|
|||||||
const DataDisk = (props, context) => {
|
const DataDisk = (props, context) => {
|
||||||
const { act, data } = useBackend(context);
|
const { act, data } = useBackend(context);
|
||||||
|
|
||||||
const { designs } = data.info;
|
const { designs } = data;
|
||||||
|
|
||||||
const { disk } = props;
|
const { disk } = props;
|
||||||
|
|
||||||
@@ -233,6 +233,7 @@ const DataDisk = (props, context) => {
|
|||||||
onInput={(e, v) => act('search', { search: v })}
|
onInput={(e, v) => act('search', { search: v })}
|
||||||
mb={1}
|
mb={1}
|
||||||
/>
|
/>
|
||||||
|
{(designs && designs.length && (
|
||||||
<LabeledList>
|
<LabeledList>
|
||||||
{designs.map((item) => (
|
{designs.map((item) => (
|
||||||
<LabeledList.Item label={item.name} key={item.name}>
|
<LabeledList.Item label={item.name} key={item.name}>
|
||||||
@@ -247,6 +248,7 @@ const DataDisk = (props, context) => {
|
|||||||
</LabeledList.Item>
|
</LabeledList.Item>
|
||||||
))}
|
))}
|
||||||
</LabeledList>
|
</LabeledList>
|
||||||
|
)) || <Box color="warning">No designs found.</Box>}
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user