Skip to content

Commit 98e414c

Browse files
committed
Fix error screen apears instantly, It's not rebalancing when we get 502
1 parent d7a6c69 commit 98e414c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.html

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

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

src/factories/http-interceptor.factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ angularAPP.factory('myHttpInterceptor', function($q, $injector, $log, $rootScope
3939
$rootScope.connectionFailure = true;
4040
} else if ((response.status === 409 || response.status === 504 || response.status === 502)) {
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)