Also remind the user on app install if manual dns is used
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user