Show credentials only for custom domain

This commit is contained in:
Girish Ramakrishnan
2016-07-05 12:18:26 -05:00
parent ff9fb1912b
commit 202af95502
2 changed files with 4 additions and 2 deletions

View File

@@ -16,11 +16,11 @@
<p ng-show="!config.isCustomDomain">To use a custom domain, configure your domain to use <a target="_blank" href="https://aws.amazon.com/route53/">Route53.</a> Moving to a custom domain will retain all your apps and data and will take around 15 minutes.</p>
<table width="100%">
<tr>
<tr ng-show="config.isCustomDomain">
<td class="text-muted" style="vertical-align: top;">Access Key Id</td>
<td class="text-right" style="vertical-align: top; white-space: nowrap;">{{ dnsConfig.accessKeyId }}</td>
</tr>
<tr>
<tr ng-show="config.isCustomDomain">
<td class="text-muted" style="vertical-align: top;">Secret Access Key</td>
<td class="text-right" style="vertical-align: top; white-space: nowrap;"><i>hidden</i></td>
</tr>

View File

@@ -3,6 +3,8 @@
angular.module('Application').controller('CertsController', ['$scope', '$location', 'Client', function ($scope, $location, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin || !Client.getConfig().isCustomDomain) $location.path('/'); });
$scope.config = Client.getConfig();
$scope.defaultCert = {
error: null,
success: false,