Skip to content

Commit

Permalink
Fix Request Consoles "new messages" displaying wrong (#26680)
Browse files Browse the repository at this point in the history
* Fix request console "new messages" displaying wrong

* Build and update /tg/ui

---------

Co-authored-by: Arthri <[email protected]>
Co-authored-by: /tg/ui Builder <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Burzah <[email protected]>
  • Loading branch information
4 people authored Sep 16, 2024
1 parent 024af9c commit 07ded0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions tgui/packages/tgui/interfaces/RequestConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ const MainMenu = (props, context) => {
const { act, data } = useBackend(context);
const { newmessagepriority, announcementConsole, silent } = data;
let messageInfo;
if (newmessagepriority >= RQ_NONEW_MESSAGES) {
messageInfo = (
<Box color="red" bold mb={1}>
There are new messages
</Box>
);
} else if (newmessagepriority === RQ_HIGHPRIORITY) {
if (newmessagepriority === RQ_HIGHPRIORITY) {
messageInfo = (
<Blink>
<Box color="red" bold mb={1}>
NEW PRIORITY MESSAGES
</Box>
</Blink>
);
} else if (newmessagepriority > RQ_NONEW_MESSAGES) {
messageInfo = (
<Box color="red" bold mb={1}>
There are new messages
</Box>
);
} else {
messageInfo = (
<Box color="label" mb={1}>
Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit 07ded0c

Please sign in to comment.