Skip to content

Commit

Permalink
Now can see recipient for access request in access request tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben10083 committed Aug 7, 2023
1 parent cef0633 commit 7a91fde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/ARES/ARES_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -987,9 +987,9 @@ GLOBAL_LIST_INIT(maintenance_categories, list(
var/ticket_holder
var/priority_report = FALSE
var/is_self = tgui_alert(operator, "Is this request for yourself?", "Ticket Holder", list("Yes", "No"))
if(is_self != "Yes")
if(is_self == "No")
ticket_holder = tgui_input_text(operator, "Who is the ticket for? (Please use precise name, with punctuation and capitalisation.)", "Ticket Holder", encode = FALSE)
else
else if(is_self == "Yes")
ticket_holder = last_login
if(!ticket_holder)
return FALSE
Expand Down
6 changes: 6 additions & 0 deletions tgui/packages/tgui/interfaces/WorkingJoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,9 @@ const AccessRequests = (props, context) => {
<Flex.Item bold width="6rem" shrink="0" mr="1rem">
Time
</Flex.Item>
<Flex.Item width="8rem" mr="1rem" bold>
For
</Flex.Item>
<Flex.Item width="40rem" bold>
Details
</Flex.Item>
Expand Down Expand Up @@ -764,6 +767,9 @@ const AccessRequests = (props, context) => {
<Flex.Item italic width="6rem" shrink="0" mr="1rem">
{ticket.time}
</Flex.Item>
<Flex.Item width="8rem" mr="1rem">
{ticket.title}
</Flex.Item>
<Flex.Item width="40rem" shrink="0" textAlign="left">
{ticket.details}
</Flex.Item>
Expand Down

0 comments on commit 7a91fde

Please sign in to comment.