merge in master

This commit is contained in:
Rimian Perkins
2019-10-09 09:11:02 +11:00
3 changed files with 13 additions and 14 deletions
@@ -1,13 +1,14 @@
import { ajax } from "discourse/lib/ajax";
const Plan = Discourse.Model.extend({
destroy() { }
destroy() {}
});
Plan.reopenClass({
find() {
return ajax("/patrons/admin/plans", { method: "get" })
.then(result => result.plans.map(plan => Plan.create(plan)));
return ajax("/patrons/admin/plans", { method: "get" }).then(result =>
result.plans.map(plan => Plan.create(plan))
);
}
});
@@ -5,12 +5,10 @@
{{cook-text siteSettings.discourse_patrons_payment_page}}
</p>
{{#if siteSettings.discourse_patrons_enabled}}
<div class="donations-page-payment">
{{donation-form
billing=model
paymentSuccessHandler=(action "paymentSuccessHandler")
stripePaymentHandler=(action "stripePaymentHandler")
}}
</div>
{{/if}}
<div class="donations-page-payment">
{{donation-form
billing=model
paymentSuccessHandler=(action "paymentSuccessHandler")
stripePaymentHandler=(action "stripePaymentHandler")
}}
</div>