do not set dnsConfig for caas on activation
This commit is contained in:
@@ -229,6 +229,11 @@ app.controller('FinishController', ['$scope', '$location', 'Wizard', 'Client', f
|
||||
Client.changeCloudronAvatar($scope.wizard.avatarBlob, function (error) {
|
||||
if (error) return console.error('Unable to set avatar.', error);
|
||||
|
||||
if ($scope.wizard.dnsConfig === null) {
|
||||
window.location.href = '/';
|
||||
return;
|
||||
}
|
||||
|
||||
Client.setDnsConfig($scope.wizard.dnsConfig, function (error) {
|
||||
if (error) return console.error('Unable to set dns config.', error);
|
||||
|
||||
@@ -256,12 +261,6 @@ app.controller('SetupController', ['$scope', '$location', 'Client', 'Wizard', fu
|
||||
accessKeyId: null,
|
||||
secretAccessKey: null
|
||||
};
|
||||
} else {
|
||||
Wizard.dnsConfig = {
|
||||
provider: 'caas',
|
||||
accessKeyId: '',
|
||||
secretAccessKey: ''
|
||||
};
|
||||
}
|
||||
|
||||
Client.isServerFirstTime(function (error, isFirstTime) {
|
||||
|
||||
Reference in New Issue
Block a user