Add feature object and show/hide elements accordingly
This commit is contained in:
@@ -351,8 +351,16 @@
|
||||
Cloudron can pull and install apps from private docker registry.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="row">
|
||||
|
||||
<div class="row" ng-hide="features.privateDockerRegistry">
|
||||
<div class="col-xs-12">
|
||||
<b class="text-danger">This features is only available in the business plan.</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" ng-show="features.privateDockerRegistry">
|
||||
<div class="col-xs-6">
|
||||
<span class="text-muted">Server address</span>
|
||||
</div>
|
||||
@@ -360,16 +368,19 @@
|
||||
<span>{{ registryConfig.currentConfig.serverAddress || 'Not set' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="row" ng-show="features.privateDockerRegistry">
|
||||
<div class="col-xs-6">
|
||||
<span class="text-muted">Username</span>
|
||||
</div>
|
||||
<div class="col-xs-6 text-right">
|
||||
<span>{{ registryConfig.currentConfig.username || registryConfig.currentConfig.email || 'Not set' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="row">
|
||||
|
||||
<div class="row" ng-show="features.privateDockerRegistry">
|
||||
<div class="col-xs-12">
|
||||
<button class="btn btn-primary pull-right" ng-click="registryConfig.show()">Configure Registry</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user