diff --git a/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show-plans-show.hbs b/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show-plans-show.hbs index 2cdb72d..361e7c4 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show-plans-show.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show-plans-show.hbs @@ -145,14 +145,14 @@ {{#if model.plan.isNew}} {{d-button label="discourse_subscriptions.admin.plans.operations.create" - action="createPlan" + action=(action "createPlan") icon="plus" class="btn btn-primary" }} {{else}} {{d-button label="discourse_subscriptions.admin.plans.operations.update" - action="updatePlan" + action=(action "updatePlan") icon="check" class="btn btn-primary" }} diff --git a/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show.hbs b/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show.hbs index 3c0a1ec..5e5888d 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-products-show.hbs @@ -142,14 +142,14 @@ {{#if model.product.isNew}} {{d-button label="discourse_subscriptions.admin.products.operations.create" - action="createProduct" + action=(action "createProduct") icon="plus" class="btn btn-primary" }} {{else}} {{d-button label="discourse_subscriptions.admin.products.operations.update" - action="updateProduct" + action=(action "updateProduct") icon="check" class="btn btn-primary" }} diff --git a/assets/javascripts/discourse/templates/components/campaign-banner.hbs b/assets/javascripts/discourse/templates/components/campaign-banner.hbs index e17485b..e43b97f 100644 --- a/assets/javascripts/discourse/templates/components/campaign-banner.hbs +++ b/assets/javascripts/discourse/templates/components/campaign-banner.hbs @@ -3,7 +3,7 @@ class="campaign-banner" style={{html-safe (concat "box-shadow: 5px 5px #" dropShadowColor)}} > - {{d-button icon="times" action="dismissBanner" class="close"}} + {{d-button icon="times" action=(action "dismissBanner") class="close"}}
{{#if isGoalMet}} diff --git a/assets/javascripts/discourse/templates/components/login-required.hbs b/assets/javascripts/discourse/templates/components/login-required.hbs index 8512e4d..76f3ed9 100644 --- a/assets/javascripts/discourse/templates/components/login-required.hbs +++ b/assets/javascripts/discourse/templates/components/login-required.hbs @@ -2,7 +2,7 @@ {{d-button label="log_in" - action="createAccount" + action=(action "createAccount") icon="user" class="btn btn-primary" }} diff --git a/assets/javascripts/discourse/templates/components/payment-plan.hbs b/assets/javascripts/discourse/templates/components/payment-plan.hbs index 8a3a2fb..559f3b8 100644 --- a/assets/javascripts/discourse/templates/components/payment-plan.hbs +++ b/assets/javascripts/discourse/templates/components/payment-plan.hbs @@ -1,5 +1,5 @@ {{#ds-button - action="planClick" + action=(action "planClick") selected=selected class="btn-discourse-subscriptions-subscribe" }} diff --git a/assets/javascripts/discourse/templates/subscribe/show.hbs b/assets/javascripts/discourse/templates/subscribe/show.hbs index 8e0e74d..19b2706 100644 --- a/assets/javascripts/discourse/templates/subscribe/show.hbs +++ b/assets/javascripts/discourse/templates/subscribe/show.hbs @@ -41,7 +41,7 @@ {{d-button disabled=loading - action="stripePaymentHandler" + action=(action "stripePaymentHandler") class="btn btn-primary btn-payment" label="discourse_subscriptions.plans.payment_button" }}