webadmin: Hide domain actions for caas managed domains
This commit is contained in:
@@ -184,8 +184,8 @@
|
|||||||
{{ domain.config.provider }}
|
{{ domain.config.provider }}
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right no-wrap" style="vertical-align: bottom">
|
<td class="text-right no-wrap" style="vertical-align: bottom">
|
||||||
<button class="btn btn-xs btn-default" ng-click="domainConfigure.show(domain)" title="Edit Domain"><i class="fa fa-pencil"></i></button>
|
<button class="btn btn-xs btn-default" ng-click="domainConfigure.show(domain)" ng-show="domain.config.provider !== 'caas'" title="Edit Domain"><i class="fa fa-pencil"></i></button>
|
||||||
<button class="btn btn-xs btn-danger" ng-click="domainRemove.show(domain)" title="Remove Domain"><i class="fa fa-trash-o"></i></button>
|
<button class="btn btn-xs btn-danger" ng-click="domainRemove.show(domain)" ng-show="domain.config.provider !== 'caas'" title="Remove Domain"><i class="fa fa-trash-o"></i></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ angular.module('Application').controller('DomainsController', ['$scope', '$locat
|
|||||||
$scope.domainConfigure.cloudflareToken = domain.config.provider === 'cloudflare' ? domain.config.token : '';
|
$scope.domainConfigure.cloudflareToken = domain.config.provider === 'cloudflare' ? domain.config.token : '';
|
||||||
$scope.domainConfigure.cloudflareEmail = domain.config.email;
|
$scope.domainConfigure.cloudflareEmail = domain.config.email;
|
||||||
|
|
||||||
$scope.domainConfigure.provider = domain.config.provider === 'caas' ? 'route53' : domain.config.provider;
|
$scope.domainConfigure.provider = domain.config.provider;
|
||||||
$scope.domainConfigure.provider = ($scope.domainConfigure.provider === 'manual' && domain.config.wildcard) ? 'wildcard' : domain.config.provider;
|
$scope.domainConfigure.provider = ($scope.domainConfigure.provider === 'manual' && domain.config.wildcard) ? 'wildcard' : domain.config.provider;
|
||||||
} else {
|
} else {
|
||||||
$scope.domainConfigure.adding = true;
|
$scope.domainConfigure.adding = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user