FIX: A few more syntax fixes for button actions (#162)

This commit is contained in:
Mark Reeves 2023-05-08 10:36:11 -04:00 committed by GitHub
parent 803bba7938
commit 7bc34bbbb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
</td>
<td>
<DButton
@action={{this.deleteCoupon}}
@action={{action "deleteCoupon"}}
@actionParam={{coupon}}
@icon="trash-alt"
class="btn-danger btn btn-icon btn-no-text"
@ -44,7 +44,7 @@
{{#unless creating}}
<DButton
@action={{this.openCreateForm}}
@action={{action "openCreateForm"}}
@label="discourse_subscriptions.admin.coupons.create"
@title="discourse_subscriptions.admin.coupons.create"
@icon="plus"

View File

@ -135,7 +135,7 @@
{{/unless}}
<div class="pull-right">
<DButton @label="cancel" @action={{this.cancelProduct}} @icon="times" />
<DButton @label="cancel" @action={{action "cancelProduct"}} @icon="times" />
{{#if model.product.isNew}}
<DButton