spaces: use edition instead of setting

This commit is contained in:
Girish Ramakrishnan
2018-08-28 18:55:13 -07:00
parent dd53d0d575
commit d316d216db
7 changed files with 10 additions and 74 deletions

View File

@@ -325,27 +325,4 @@
</div>
</div>
<div class="text-left" ng-show="subscription && subscription.plan.id.indexOf('spaces') !== -1">
<h3>Cloudron Spaces</h3>
</div>
<div class="card" style="margin-bottom: 15px;" ng-show="subscription && subscription.plan.id.indexOf('spaces') !== -1">
<div class="row">
<div class="col-md-12">
<p>Cloudron Spaces allows users to install and run apps of their own</p>
<p class="text-danger" ng-show="spaces.error"><br/>{{ spaces.error }}</p>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<button ng-class="spaces.enabled ? 'btn btn-danger' : 'btn btn-primary'" class="pull-right" ng-click="spaces.submit()" ng-disabled="spaces.busy">
<i class="fa fa-circle-o-notch fa-spin" ng-show="spaces.busy"></i>
{{ spaces.enabled ? "Disable" : "Enable" }}
</button>
</div>
</div>
</div>
</div>