Show different subscription bubbles based on the billing and subscription status

This commit is contained in:
Johannes Zellner
2018-03-28 12:26:24 +02:00
parent 09f1bb4653
commit 8196f76847
2 changed files with 21 additions and 2 deletions

View File

@@ -188,9 +188,19 @@
<span class="badge badge-success">Update available</span>
</a>
</li>
<li ng-show="appstoreConfig && !config.update.box && user.admin && !config.update.box.sourceTarballUrl">
<li ng-show="ready && !subscription">
<a ng-href="" ng-click="showSubscriptionModal()" style="cursor: pointer">
<span class="badge badge-success">FREE TRIAL</span>
<span class="badge badge-success">LICENSE EXPIRED</span>
</a>
</li>
<li ng-show="ready && subscription && subscription.status === 'trialing' && !appstoreConfig.profile.billing">
<a ng-href="{{ config.webServerOrigin + '/console.html#/userprofile?view=credit_card&email=' + appstoreConfig.profile.email }}" target="_blank">
<span class="badge badge-success">IN TRIAL SETUP BILLING</span>
</a>
</li>
<li ng-show="ready && subscription && subscription.status === 'trialing' && appstoreConfig.profile.billing">
<a href="#/settings" style="cursor: pointer">
<span class="badge badge-success">IN TRIAL</span>
</a>
</li>
<li>