mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +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)
|
||||
playsound(src, 'sound/effects/sparks4.ogg', 75, 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
|
||||
|
||||
/obj/machinery/computer/rdconsole/proc/GetResearchLevelsInfo()
|
||||
|
||||
@@ -196,7 +196,7 @@ const TechDisk = (props, context) => {
|
||||
const DataDisk = (props, context) => {
|
||||
const { act, data } = useBackend(context);
|
||||
|
||||
const { designs } = data.info;
|
||||
const { designs } = data;
|
||||
|
||||
const { disk } = props;
|
||||
|
||||
@@ -233,6 +233,7 @@ const DataDisk = (props, context) => {
|
||||
onInput={(e, v) => act('search', { search: v })}
|
||||
mb={1}
|
||||
/>
|
||||
{(designs && designs.length && (
|
||||
<LabeledList>
|
||||
{designs.map((item) => (
|
||||
<LabeledList.Item label={item.name} key={item.name}>
|
||||
@@ -247,6 +248,7 @@ const DataDisk = (props, context) => {
|
||||
</LabeledList.Item>
|
||||
))}
|
||||
</LabeledList>
|
||||
)) || <Box color="warning">No designs found.</Box>}
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ const TechDisk = (props, context) => {
|
||||
const DataDisk = (props, context) => {
|
||||
const { act, data } = useBackend(context);
|
||||
|
||||
const { designs } = data.info;
|
||||
const { designs } = data;
|
||||
|
||||
const { disk } = props;
|
||||
|
||||
@@ -233,6 +233,7 @@ const DataDisk = (props, context) => {
|
||||
onInput={(e, v) => act('search', { search: v })}
|
||||
mb={1}
|
||||
/>
|
||||
{(designs && designs.length && (
|
||||
<LabeledList>
|
||||
{designs.map((item) => (
|
||||
<LabeledList.Item label={item.name} key={item.name}>
|
||||
@@ -247,6 +248,7 @@ const DataDisk = (props, context) => {
|
||||
</LabeledList.Item>
|
||||
))}
|
||||
</LabeledList>
|
||||
)) || <Box color="warning">No designs found.</Box>}
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user