From 38dd85daab8e8342ec608d24cf81254c0dfde95c Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Sun, 20 Nov 2016 19:39:18 +0100
Subject: Adding notifications column

---
 app/assets/javascripts/components/middleware/errors.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'app/assets/javascripts/components/middleware/errors.jsx')

diff --git a/app/assets/javascripts/components/middleware/errors.jsx b/app/assets/javascripts/components/middleware/errors.jsx
index 9d2aa19d0..fb161fc4c 100644
--- a/app/assets/javascripts/components/middleware/errors.jsx
+++ b/app/assets/javascripts/components/middleware/errors.jsx
@@ -1,4 +1,4 @@
-import { showNotification } from '../actions/notifications';
+import { showAlert } from '../actions/alerts';
 
 const defaultFailSuffix = 'FAIL';
 
@@ -18,10 +18,10 @@ export default function errorsMiddleware() {
             message = data.error;
           }
 
-          dispatch(showNotification(title, message));
+          dispatch(showAlert(title, message));
         } else {
           console.error(action.error);
-          dispatch(showNotification('Oops!', 'An unexpected error occurred. Inspect the console for more details'));
+          dispatch(showAlert('Oops!', 'An unexpected error occurred. Inspect the console for more details'));
         }
       }
     }
-- 
cgit 

