about summary refs log tree commit diff
path: root/app/assets/javascripts/components/middleware
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-26 23:06:27 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-26 23:06:27 +0100
commit4fbdf100c4a942100f6542bbb858d91673af8573 (patch)
tree60aa15666490ed1d3b79e2b94a6f43c90b3d619f /app/assets/javascripts/components/middleware
parent4bb8ff7c8ea3ab7c291a23893af2846811b99faf (diff)
Add <MissingIndicator /> when status or account are not found, skip alerts
for those errors
Diffstat (limited to 'app/assets/javascripts/components/middleware')
-rw-r--r--app/assets/javascripts/components/middleware/errors.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/middleware/errors.jsx b/app/assets/javascripts/components/middleware/errors.jsx
index 74d77f0f9..4aca75f1e 100644
--- a/app/assets/javascripts/components/middleware/errors.jsx
+++ b/app/assets/javascripts/components/middleware/errors.jsx
@@ -5,7 +5,7 @@ const defaultFailSuffix = 'FAIL';
 
 export default function errorsMiddleware() {
   return ({ dispatch }) => next => action => {
-    if (action.type) {
+    if (action.type && !action.skipAlert) {
       const isFail = new RegExp(`${defaultFailSuffix}$`, 'g');
       const isSuccess = new RegExp(`${defaultSuccessSuffix}$`, 'g');