Also remind the user on app install if manual dns is used

This commit is contained in:
Johannes Zellner
2017-01-10 13:47:58 +01:00
parent 89ae1a8b92
commit 03383eecbc
2 changed files with 18 additions and 0 deletions

View File

@@ -27,6 +27,11 @@
</div>
</div>
<p class="text-center" ng-show="appInstall.location && dnsConfig.provider === 'manual' && !dnsConfig.wildcard">
<b>Do not forget, to add an A record for {{ appInstall.location }}.{{ config.fqdn }}</b>
<br>
</p>
<div class="has-error text-center" ng-show="appInstall.error.port">{{ appInstall.error.port }}</div>
<div ng-repeat="(env, info) in appInstall.portBindingsInfo">
<ng-form name="portInfo_form">

View File

@@ -7,6 +7,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
$scope.user = Client.getUserInfo();
$scope.users = [];
$scope.groups = [];
$scope.dnsConfig = {};
$scope.category = '';
$scope.cachedCategory = ''; // used to cache the selected category while searching
$scope.searchString = '';
@@ -512,6 +513,17 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
});
}
function fetchDnsConfig() {
Client.getDnsConfig(function (error, result) {
if (error) {
console.error(error);
return $timeout(fetchDnsConfig, 5000);
}
$scope.dnsConfig = result;
});
}
function checkAppstoreAccount() {
if (Client.getConfig().provider === 'caas') return;
if (!$scope.user.admin) return;
@@ -557,6 +569,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
if ($scope.user.admin) {
fetchUsers();
fetchGroups();
fetchDnsConfig();
}
$scope.ready = true;