From 98e069ae7efedd8a190cee70975d29e031282eae Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 4 Sep 2022 20:08:11 +0200 Subject: [PATCH] different error if status is 503 --- frontend/src/ts/elements/alerts.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/elements/alerts.ts b/frontend/src/ts/elements/alerts.ts index 1d131d903..402538058 100644 --- a/frontend/src/ts/elements/alerts.ts +++ b/frontend/src/ts/elements/alerts.ts @@ -145,7 +145,14 @@ async function getAccountAlerts(): Promise { $("#alertsPopup .accountAlerts .list").empty(); - if (inboxResponse.status !== 200) { + if (inboxResponse.status === 503) { + $("#alertsPopup .accountAlerts .list").html(` +
+ Account inboxes are temporarily unavailable. +
+ `); + return; + } else if (inboxResponse.status !== 200) { $("#alertsPopup .accountAlerts .list").html(`
Error getting inbox: ${inboxResponse.message} Please try again later.