DEV: Use closure actions (#127)

This commit is contained in:
David Taylor 2022-07-06 00:20:12 +01:00 committed by GitHub
parent 392b88265b
commit d4d92d9653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View File

@ -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"
}}

View File

@ -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"
}}

View File

@ -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"}}
<div class="campaign-banner-info" style={{html-safe this.bannerInfoStyle}}>
{{#if isGoalMet}}

View File

@ -2,7 +2,7 @@
{{d-button
label="log_in"
action="createAccount"
action=(action "createAccount")
icon="user"
class="btn btn-primary"
}}

View File

@ -1,5 +1,5 @@
{{#ds-button
action="planClick"
action=(action "planClick")
selected=selected
class="btn-discourse-subscriptions-subscribe"
}}

View File

@ -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"
}}