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

View File

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