Skip to content

Commit

Permalink
[MIRROR] Blank IDs no longer get stuck in modular computers [MDB IGNO…
Browse files Browse the repository at this point in the history
…RE] (#24977) (#608)

* Blank IDs no longer get stuck in modular computers (#79689)

See name. The Eject ID button now correctly lights up even with no name
on the ID

* Blank IDs no longer get stuck in modular computers

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Waterpig <[email protected]>
  • Loading branch information
3 people authored Nov 14, 2023
1 parent 3e18472 commit bfa8e59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
)

data["proposed_login"] = list(
IDInserted = computer_id_slot ? TRUE : FALSE,
IDName = computer_id_slot?.registered_name,
IDJob = computer_id_slot?.assignment,
)
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/NtosMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const NtosMain = (props, context) => {
<Button
icon="eject"
content="Eject ID"
disabled={!proposed_login.IDName}
disabled={!proposed_login.IDInserted}
onClick={() => act('PC_Eject_Disk', { name: 'ID' })}
/>
{!!show_imprint && (
Expand Down

0 comments on commit bfa8e59

Please sign in to comment.