Further improve the dns setup ui

This commit is contained in:
Johannes Zellner
2017-01-05 12:31:37 +01:00
parent c9cb1cabc4
commit 617fa98dee
2 changed files with 22 additions and 10 deletions

View File

@@ -26,8 +26,8 @@ app.controller('SetupDNSController', ['$scope', '$http', 'Client', function ($sc
provider: 'route53'
};
$scope.setDNSCredentials = function () {
$scope.busy = true;
$scope.setDnsCredentials = function () {
$scope.dnsCredentials.busy = true;
var data = {
domain: $scope.dnsCredentials.domain,
@@ -45,11 +45,13 @@ app.controller('SetupDNSController', ['$scope', '$http', 'Client', function ($sc
Client.setupDnsConfig(data, function (error) {
if (error) {
$scope.busy = false;
$scope.dnsCredentials.busy = false;
$scope.dnsCredentials.error = error.message;
return;
}
$scope.busy = true;
setTimeout(function () {
// TODO wait until domain is propagated and cert got acquired
window.location.href = 'https://my.' + $scope.dnsCredentials.domain + '/setup.html';