Moved Stripe customer link to subscriptions

- since there can be different Stripe customers for each subscription, it makes more sense to place the customer link together with it
This commit is contained in:
Peter Zimon 2021-05-05 15:23:44 +02:00
parent 6cf86f431b
commit abe7857e18

View File

@ -99,23 +99,6 @@
</div>
</div>
</GhFormGroup>
{{#if (and this.canShowStripeInfo this.customer)}}
<div class="gh-member-stripe-info">
<h4 class="gh-setting-title m">Stripe customer</h4>
<p class="gh-setting-desc">
{{#if this.customer.email}}
{{this.customer.email}}
{{else}}
<span class="midgrey-l2">No email</span>
{{/if}}
&ndash;
<a href="https://dashboard.stripe.com/customers/{{customer.id}}" target="_blank" rel="noopener">
View on Stripe
</a>
</p>
</div>
{{/if}}
</div>
</div>
@ -165,9 +148,15 @@
</span>
</GhDropdownButton>
<GhDropdown @name="subscription-menu-{{sub.id}}" @tagName="ul" @classNames="product-actions-menu dropdown-menu dropdown-align-right">
<li>
<a href="https://dashboard.stripe.com/customers/{{sub.customer.id}}" target="_blank" rel="noopener">
View Stripe customer
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://dashboard.stripe.com/subscriptions/{{sub.id}}" target="_blank" rel="noopener">
View on Stripe
View Stripe subscription
</a>
</li>
<li>