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}} {{#if model.plan.isNew}}
{{d-button {{d-button
label="discourse_subscriptions.admin.plans.operations.create" label="discourse_subscriptions.admin.plans.operations.create"
action="createPlan" action=(action "createPlan")
icon="plus" icon="plus"
class="btn btn-primary" class="btn btn-primary"
}} }}
{{else}} {{else}}
{{d-button {{d-button
label="discourse_subscriptions.admin.plans.operations.update" label="discourse_subscriptions.admin.plans.operations.update"
action="updatePlan" action=(action "updatePlan")
icon="check" icon="check"
class="btn btn-primary" class="btn btn-primary"
}} }}

View File

@ -142,14 +142,14 @@
{{#if model.product.isNew}} {{#if model.product.isNew}}
{{d-button {{d-button
label="discourse_subscriptions.admin.products.operations.create" label="discourse_subscriptions.admin.products.operations.create"
action="createProduct" action=(action "createProduct")
icon="plus" icon="plus"
class="btn btn-primary" class="btn btn-primary"
}} }}
{{else}} {{else}}
{{d-button {{d-button
label="discourse_subscriptions.admin.products.operations.update" label="discourse_subscriptions.admin.products.operations.update"
action="updateProduct" action=(action "updateProduct")
icon="check" icon="check"
class="btn btn-primary" class="btn btn-primary"
}} }}

View File

@ -3,7 +3,7 @@
class="campaign-banner" class="campaign-banner"
style={{html-safe (concat "box-shadow: 5px 5px #" dropShadowColor)}} 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}}> <div class="campaign-banner-info" style={{html-safe this.bannerInfoStyle}}>
{{#if isGoalMet}} {{#if isGoalMet}}

View File

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

View File

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

View File

@ -41,7 +41,7 @@
{{d-button {{d-button
disabled=loading disabled=loading
action="stripePaymentHandler" action=(action "stripePaymentHandler")
class="btn btn-primary btn-payment" class="btn btn-primary btn-payment"
label="discourse_subscriptions.plans.payment_button" label="discourse_subscriptions.plans.payment_button"
}} }}