Skip to content

Commit 2891437

Browse files
authored
Merge pull request #8 from Landoop/502-handling
remove 502 handling
2 parents 18ccb20 + 6b5d31b commit 2891437

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<link rel="shortcut icon" href="src/assets/icons/favicon.png">
1616
</head>
1717

18-
<body ng-app="angularAPP" ngCloak>
18+
<body ng-app="angularAPP" ng-cloak>
1919
<md-progress-linear md-mode="indeterminate" ng-show="loading || rebalancing"></md-progress-linear>
2020
<header class="header" ng-controller="HeaderCtrl" style="background-color:{{color}}">
2121
<div layout="row" layout-xs="column">

src/factories/http-interceptor.factory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ angularAPP.factory('myHttpInterceptor', function($q, $injector, $log, $rootScope
3434
return response;
3535
},
3636
'responseError': function(response) {
37-
if (response.status === -1 && response.data == null){
37+
if (response.status === -1 && response.data == null || response.status === 502){
3838
$rootScope.rebalancing = false;
3939
$rootScope.connectionFailure = true;
40-
} else if ((response.status === 409 || response.status === 504 || response.status === 502)) {
40+
} else if (response.status === 409 || response.status === 504) {
4141
$rootScope.loading = true;
42-
if(response.status === 409 || response.status === 502) {
42+
if(response.status === 409) {
4343
$log.error("409 - cluster rebalance or restart is in process.")
4444
$rootScope.rebalancing = true;
4545
$rootScope.connectionFailure = false;

0 commit comments

Comments
 (0)