Skip to content
Snippets Groups Projects
Commit 11eb494c authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: sync was sometimes stuck

parent b3cf652f
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
var co = require('co'); var co = require('co');
module.exports = ($scope, $http, $state, $stateParams, BMA, UIUtils) => { module.exports = ($scope, $http, $state, $timeout, $stateParams, BMA, UIUtils) => {
let syncWS = BMA.webmin.ws(); let syncWS = BMA.webmin.ws();
...@@ -43,6 +43,10 @@ module.exports = ($scope, $http, $state, $stateParams, BMA, UIUtils) => { ...@@ -43,6 +43,10 @@ module.exports = ($scope, $http, $state, $stateParams, BMA, UIUtils) => {
$scope.sync_failed = data.value; $scope.sync_failed = data.value;
if (data.value === true) { if (data.value === true) {
$state.go('index'); $state.go('index');
} else {
$timeout(() => {
window.location.href = "";
}, 500);
} }
} else { } else {
let changed = true; let changed = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment