diff options
author | ThibG <thib@sitedethib.com> | 2019-06-11 22:18:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 22:18:41 +0200 |
commit | cde30407c6bfaaaa34f8b95c16f1b19cb0c41479 (patch) | |
tree | 01b2e9139f6fae619de308413768ff0b7662c68e /app/javascript/flavours/glitch/actions/alerts.js | |
parent | c64eef12069c3476f9956dfaaf6a3a9f91c14e2d (diff) | |
parent | 82899b3d2e33d10175b1a6df41fb27c6d63d54b6 (diff) |
Merge pull request #1105 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/actions/alerts.js')
-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; |