diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-11 02:26:37 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-26 22:21:43 -0600 |
commit | a6ea38d07b7343cd062a9b7d97c3181d18fca7e3 (patch) | |
tree | 08c5042836e1b85ce88dc8067ace8e01469ecd4c /app/javascript/flavours/glitch/actions | |
parent | 769661c0041e1ffc3aec4c0338e9a206f5dd490a (diff) |
[Glitch] Fix list not being automatically unpinned when it returns 404 in web UI
Port 92b572e2a3830086497900fa78dcfcc2ae919e33 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/actions')
-rw-r--r-- | app/javascript/flavours/glitch/actions/alerts.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/alerts.js b/app/javascript/flavours/glitch/actions/alerts.js index b2c7ab76a..ef2500e7b 100644 --- a/app/javascript/flavours/glitch/actions/alerts.js +++ b/app/javascript/flavours/glitch/actions/alerts.js @@ -8,6 +8,7 @@ const messages = defineMessages({ export const ALERT_SHOW = 'ALERT_SHOW'; export const ALERT_DISMISS = 'ALERT_DISMISS'; export const ALERT_CLEAR = 'ALERT_CLEAR'; +export const ALERT_NOOP = 'ALERT_NOOP'; export function dismissAlert(alert) { return { @@ -36,7 +37,7 @@ export function showAlertForError(error) { if (status === 404 || status === 410) { // Skip these errors as they are reflected in the UI - return {}; + return { type: ALERT_NOOP }; } let message = statusText; |