Updated Stripe connect disconnect error UI

no refs.
- added logic to show either the disconnect error or the connected status to make the UI less dense
This commit is contained in:
Peter Zimon 2020-07-17 19:07:20 +02:00
parent 59ce29e19a
commit 369cdf9fa2

View File

@ -56,6 +56,11 @@
<div>
<h4 class="gh-setting-title">Connect to Stripe</h4>
{{#if this.stripeConnectAccountId}}
{{#if this.hasActiveStripeSubscriptions}}
<p class="red ma0 pa0 f8 nudge-bottom--2">
Cannot disconnect while there are members with active Stripe subscriptions.
</p>
{{else}}
<p class="gh-setting-desc pa0 ma0">
{{#if this.stripeConnectSuccess}}
{{svg-jar "check-circle" class="stroke-green w4 h4 nudge-top--3"}} <span class="green-d1">Successfully connected to {{this.stripeConnectAccountName}}</span>
@ -67,10 +72,6 @@
<span class="gh-members-connect-testmodelabel">Test mode</span>
{{/unless}}
</p>
{{#if this.hasActiveStripeSubscriptions}}
<p class="red ma0 pa0 f8">
Cannot disconnect while there are members with active Stripe subscriptions.
</p>
{{/if}}
{{else}}
<p class="gh-setting-desc pa0 ma0">Connect to Stripe to create subscriptions and take payments</p>