diff --git a/src/js/client.js b/src/js/client.js index 53d178c00..47c0edc07 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -1731,7 +1731,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; - Client.prototype.getDNSRecords = function (domain, subdomain, callback) { + Client.prototype.checkDNSRecords = function (domain, subdomain, callback) { get('/api/v1/domains/' + domain + '/dns_check?subdomain=' + subdomain, null, function (error, data, status) { if (error) return callback(error); if (status !== 200) return callback(new ClientError(status, data)); diff --git a/src/views/app.js b/src/views/app.js index 862339b97..0c254a3d7 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -240,7 +240,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' asyncForEach(domains, function (domain, callback) { if (overwriteDns) return callback(); - Client.getDNSRecords(domain.domain, domain.subdomain, function (error, result) { + Client.checkDNSRecords(domain.domain, domain.subdomain, function (error, result) { if (error) return callback(error); if (result.error) { if (data.domain === domain.domain && data.location === domain.subdomain) { diff --git a/src/views/appstore.html b/src/views/appstore.html index 570ad63ba..226e18683 100644 --- a/src/views/appstore.html +++ b/src/views/appstore.html @@ -18,7 +18,8 @@
- + +
{{ appInstall.error.location }}
diff --git a/src/views/appstore.js b/src/views/appstore.js index 4b5147ed6..d18f2ff5d 100644 --- a/src/views/appstore.js +++ b/src/views/appstore.js @@ -176,13 +176,13 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca sso: !$scope.appInstall.optionalSso ? undefined : ($scope.appInstall.accessRestrictionOption !== 'nosso') }; - Client.getDNSRecords(data.domain, data.location, function (error, result) { + Client.checkDNSRecords(data.domain, data.location, function (error, result) { if (error) return Client.error(error); if (!data.overwriteDns) { if (result.error || result.needsOverwrite) { $scope.appInstall.needsOverwrite = true; - $scope.appInstall.error.location = result.error ? result.error.message : 'DNS Record already exists outside of Cloudron. Resubmit to overwrite.'; + $scope.appInstall.error.location = result.error ? result.error.message : 'DNS Record already exists. Confirm that the domain is not in use for services external to Cloudron'; $scope.appInstall.busy = false; $scope.appInstallForm.location.$setPristine(); $('#appInstallLocationInput').focus();