From eddf43e1337f713b6e9f4ef6e733171f742e76a5 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Mon, 6 Jul 2015 19:02:21 -0700 Subject: Notes to myself --- web/react/utils/async_client.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web/react/utils') diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx index a2a6f8db7..2c6923e53 100644 --- a/web/react/utils/async_client.jsx +++ b/web/react/utils/async_client.jsx @@ -15,7 +15,12 @@ var ActionTypes = Constants.ActionTypes; var callTracker = {}; var dispatchError = function(err, method) { - if (err.message === "There appears to be a problem with your internet connection") return; + if (err.message === "There appears to be a problem with your internet connection") { + + //Need to communicate this fact to textbox and cause it to change color + + return; + } AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVED_ERROR, -- cgit v1.2.3-1-g7c22 From 80f9ebadeff1f96fe2235e35cc5a1f80afd6dd58 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Tue, 7 Jul 2015 11:22:58 -0700 Subject: Added errorchange listener to textbox that detects if inet is not connected. Still do not have reliable way of checking if inet has reconnected --- web/react/utils/async_client.jsx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'web/react/utils') diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx index 2c6923e53..f96592c06 100644 --- a/web/react/utils/async_client.jsx +++ b/web/react/utils/async_client.jsx @@ -15,13 +15,6 @@ var ActionTypes = Constants.ActionTypes; var callTracker = {}; var dispatchError = function(err, method) { - if (err.message === "There appears to be a problem with your internet connection") { - - //Need to communicate this fact to textbox and cause it to change color - - return; - } - AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVED_ERROR, err: err, -- cgit v1.2.3-1-g7c22