DEV: Use closure actions (#127)
This commit is contained in:
parent
392b88265b
commit
d4d92d9653
|
@ -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"
|
||||
}}
|
||||
|
|
|
@ -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"
|
||||
}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{d-button
|
||||
label="log_in"
|
||||
action="createAccount"
|
||||
action=(action "createAccount")
|
||||
icon="user"
|
||||
class="btn btn-primary"
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#ds-button
|
||||
action="planClick"
|
||||
action=(action "planClick")
|
||||
selected=selected
|
||||
class="btn-discourse-subscriptions-subscribe"
|
||||
}}
|
||||
|
|
|
@ -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"
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue