diff --git a/code/__DEFINES/ARES.dm b/code/__DEFINES/ARES.dm index 6b90aa0f02bb..c391d9fb3861 100644 --- a/code/__DEFINES/ARES.dm +++ b/code/__DEFINES/ARES.dm @@ -53,10 +53,13 @@ #define TICKET_REJECTED "rejected" /// Completed by WJs #define TICKET_COMPLETED "completed" + /// Granted Access Ticket #define TICKET_GRANTED "granted" -/// Granted Access Ticket +/// Revoked Access Ticket #define TICKET_REVOKED "revoked" +/// Self-Returned Access Ticket +#define TICKET_RETURNED "returned" /// Checks for if buttons can be used, these may yet be removed and internalised to the UI programming #define TICKET_OPEN "OPEN" diff --git a/code/game/machinery/ARES/ARES_procs.dm b/code/game/machinery/ARES/ARES_procs.dm index 9a2e0582e79d..bb3fc2f51948 100644 --- a/code/game/machinery/ARES/ARES_procs.dm +++ b/code/game/machinery/ARES/ARES_procs.dm @@ -944,7 +944,7 @@ GLOBAL_LIST_INIT(maintenance_categories, list( if(identification.registered_gid != access_ticket.user_id_num) continue - access_ticket.ticket_status = TICKET_REVOKED + access_ticket.ticket_status = TICKET_RETURNED identification.access -= ACCESS_MARINE_AI_TEMP identification.modification_log += "Temporary AI Access self-returned by [key_name(operator)]." diff --git a/tgui/packages/tgui/interfaces/WorkingJoe.js b/tgui/packages/tgui/interfaces/WorkingJoe.js index 9bdadaa47c5b..553c06adcd85 100644 --- a/tgui/packages/tgui/interfaces/WorkingJoe.js +++ b/tgui/packages/tgui/interfaces/WorkingJoe.js @@ -738,6 +738,9 @@ const AccessRequests = (props, context) => { } else if (ticket.status === 'revoked') { view_status = 'Access ticket has been revoked.'; view_icon = 'circle-minus'; + } else if (ticket.status === 'returned') { + view_status = 'Access ticket has been returned.'; + view_icon = 'circle-minus'; } let can_cancel = 'Yes'; if (ticket.submitter !== logged_in) { @@ -886,6 +889,11 @@ const AccessTickets = (props, context) => { view_status = 'Access ticket has been revoked.'; view_icon = 'circle-minus'; update_tooltip = 'Access revoked. No further changes possible.'; + } else if (ticket.status === 'returned') { + view_status = 'Access ticket has been returned.'; + view_icon = 'circle-minus'; + update_tooltip = + 'Access self-returned. No further changes possible.'; } return (