Cleanup the dns setup code

This commit is contained in:
Johannes Zellner
2017-01-05 11:53:45 +01:00
parent a66f250350
commit 92ab6b5aa4
2 changed files with 5 additions and 57 deletions

View File

@@ -3,7 +3,7 @@
// create main application module
var app = angular.module('Application', ['angular-md5', 'ui-notification']);
app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope, $http, Client) {
app.controller('SetupDNSController', ['$scope', '$http', 'Client', function ($scope, $http, Client) {
$scope.initialized = false;
$scope.busy = false;
$scope.error = null;
@@ -43,7 +43,7 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
data.wildcard = true;
}
Client.setDnsConfig(data, function (error) {
Client.setupDnsConfig(data, function (error) {
if (error) {
$scope.busy = false;
$scope.dnsCredentials.error = error.message;
@@ -52,7 +52,7 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
setTimeout(function () {
// TODO wait until domain is propagated and cert got acquired
window.location.href = 'https://my.' + $scope.dnsCredentials.domain;
window.location.href = 'https://my.' + $scope.dnsCredentials.domain + '/setup.html';
}, 5000);
});
};