Hide disabled

* Do not show the form if the plugin is disabled
* Upgrade Stripe Gem
This commit is contained in:
Rimian Perkins
2019-10-08 11:36:48 +11:00
parent 8b61747fbd
commit 89e53744ed
2 changed files with 12 additions and 10 deletions
@@ -5,10 +5,12 @@
{{cook-text siteSettings.discourse_patrons_payment_page}}
</p>
<div class="donations-page-payment">
{{donation-form
billing=model
paymentSuccessHandler=(action "paymentSuccessHandler")
stripePaymentHandler=(action "stripePaymentHandler")
}}
</div>
{{#if siteSettings.discourse_patrons_enabled}}
<div class="donations-page-payment">
{{donation-form
billing=model
paymentSuccessHandler=(action "paymentSuccessHandler")
stripePaymentHandler=(action "stripePaymentHandler")
}}
</div>
{{/if}}