mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
Fixes hijack UI (#13598)
* Fixes hijack UI * This was lost too it seems * And this * More stuff that was removed * Should be good now * Nice and proper now
This commit is contained in:
@@ -211,6 +211,29 @@ const ApcContent = (props, context) => {
|
||||
content={data.nightshiftLights ? 'Enabled' : 'Disabled'}
|
||||
onClick={() => act('toggle_nightshift')} />
|
||||
)} />
|
||||
{data.hijackable === 1 && (
|
||||
<LabeledList.Item
|
||||
title="Hijacking"
|
||||
buttons={(
|
||||
<Fragment>
|
||||
<Button
|
||||
icon="unlock"
|
||||
content="Hijack"
|
||||
disabled={data.hijacker}
|
||||
onClick={() => act('hijack')} />
|
||||
<Button
|
||||
icon="lock"
|
||||
content="Lockdown"
|
||||
isabled={!data.lockdownavail && data.hijacked === 1}
|
||||
onClick={() => act('lockdown')} />
|
||||
<Button
|
||||
icon="lightbulb-o"
|
||||
content="Drain"
|
||||
disabled={!data.drainavail && data.hijacked === 1}
|
||||
onClick={() => act('drain')} />
|
||||
</Fragment>
|
||||
)} />
|
||||
)}
|
||||
</LabeledList>
|
||||
</Section>
|
||||
</Fragment>
|
||||
|
||||
Reference in New Issue
Block a user