mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 17:43:35 +01:00
Fix Request Consoles "new messages" displaying wrong (#26680)
* Fix request console "new messages" displaying wrong * Build and update /tg/ui --------- Co-authored-by: Arthri <41360489+a@users.noreply.github.com> Co-authored-by: /tg/ui Builder <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
@@ -57,13 +57,7 @@ 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}>
|
||||
@@ -71,6 +65,12 @@ const MainMenu = (props, context) => {
|
||||
</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}>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user