Only show AWS related dns settings if that provider is used

This commit is contained in:
Johannes Zellner
2016-09-22 14:23:43 +02:00
parent 4ee6a440fe
commit 505f4de55d

View File

@@ -66,11 +66,16 @@
<td class="text-right" style="vertical-align: top; white-space: nowrap;">{{ config.fqdn }}</td>
</tr>
<tr ng-show="config.isCustomDomain">
<tr>
<td class="text-muted" style="vertical-align: top;">DNS Provider</td>
<td class="text-right" style="vertical-align: top; white-space: nowrap;">{{ dnsConfig.provider }}</td>
</tr>
<tr ng-show="config.isCustomDomain && (dnsConfig.provider === 'route53' || dnsConfig.provider === 'caas')">
<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 || 'unset' }}</td>
</tr>
<tr ng-show="config.isCustomDomain">
<tr ng-show="config.isCustomDomain && (dnsConfig.provider === 'route53' || dnsConfig.provider === 'caas')">
<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>