Re-enabled Stripe disconnect for Administrators

Refs.
7394df6137
e52bdf88f9

We have temporarily disabled Stripe disconnect for Administrators to avoid hitting an API endpoint.
Now that the API is updated, disconnect is re-enabled for Owner and Admins.
This commit is contained in:
Peter Zimon 2021-09-09 13:01:07 +02:00
parent 13d2aefb5c
commit 24022e3932
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@
</div> </div>
{{else}} {{else}}
<div class="gh-portal-setting-no-stripe"> <div class="gh-portal-setting-no-stripe">
You need to <button class="gh-btn gh-btn-link black {{if (not this.session.user.isOwnerOnly) "disabled"}}" {{on "click" (action "openStripeSettings")}}>connect to Stripe</button> to take payments You need to <button class="gh-btn gh-btn-link black {{if (not this.session.user.isAdmin) "disabled"}}" {{on "click" (action "openStripeSettings")}}>connect to Stripe</button> to take payments
</div> </div>
{{/if}} {{/if}}
</div> </div>

View File

@ -69,7 +69,7 @@
<div class="gh-setting-members-tierscontainer"> <div class="gh-setting-members-tierscontainer">
<div class="gh-settings-members-tiersheader"> <div class="gh-settings-members-tiersheader">
<h4 class="gh-main-section-header small bn">Membership tiers</h4> <h4 class="gh-main-section-header small bn">Membership tiers</h4>
{{#if this.session.user.isOwnerOnly}} {{#if this.session.user.isAdmin}}
<button type="button" class="gh-btn gh-btn-outline gh-btn-stripe-status {{if this.isConnectDisallowed "disabled"}} {{if this.settings.stripeConnectAccountId "connected" ""}}" {{on "click" this.openStripeConnect}}> <button type="button" class="gh-btn gh-btn-outline gh-btn-stripe-status {{if this.isConnectDisallowed "disabled"}} {{if this.settings.stripeConnectAccountId "connected" ""}}" {{on "click" this.openStripeConnect}}>
<span> <span>
{{if this.settings.stripeConnectAccountId "Connected to Stripe" "Stripe not connected"}} {{if this.settings.stripeConnectAccountId "Connected to Stripe" "Stripe not connected"}}