Change the location to the new domain at the end of setup

This commit is contained in:
Johannes Zellner
2017-01-04 15:16:10 +01:00
parent b6a545d1f5
commit 68965f6da3

View File

@@ -167,15 +167,16 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
}
Client.setDnsConfig(data, function (error) {
$scope.busy = false;
if (error) {
$scope.busy = false;
$scope.dnsCredentials.error = error.message;
return;
}
// TODO wait until domain is propagated and cert got acquired
window.location.href = '/';
setTimeout(function () {
// TODO wait until domain is propagated and cert got acquired
window.location.href = 'https://my.' + $scope.dnsCredentials.domain;
}, 5000);
});
};