ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject ignite git commit: IGNITE-843 Minor fix.
Date Wed, 20 Jan 2016 08:07:37 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 7ec17d35b -> 4dcaabec9


IGNITE-843 Minor fix.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4dcaabec
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4dcaabec
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4dcaabec

Branch: refs/heads/ignite-843-rc2
Commit: 4dcaabec909fb57dc221065d2d9cb6f2f5ad5007
Parents: 7ec17d3
Author: Andrey <anovikov@gridgain.com>
Authored: Wed Jan 20 15:08:01 2016 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Wed Jan 20 15:08:01 2016 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/common-module.js                   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4dcaabec/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index e160714..1399f58 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -2075,9 +2075,11 @@ consoleModule.service('$agentDownload', [
                 _modal.$promise.then(_modal.show);
             }
 
-            scope.nodeFailedConnection = status !== 500 || timedOut;
+            var nodeError = _.includes([401, 403, 500], status);
 
-            if (status !== 404)
+            scope.nodeFailedConnection = nodeError || timedOut;
+
+            if (nodeError)
                 $common.showError(errMsg, 'top-right', 'body', true);
         }
 


Mime
View raw message