[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:
CHOMPStation2
2023-12-04 05:19:46 -07:00
committed by GitHub
parent 93c3a87998
commit 84f7b6f1ec
4 changed files with 36 additions and 32 deletions

View File

@@ -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()

View File

@@ -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>
);
}

View File

@@ -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