Skip to content

Commit

Permalink
convert buttons to DButton
Browse files Browse the repository at this point in the history
  • Loading branch information
merefield committed Sep 24, 2023
1 parent c89dbbb commit 1fdd78b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<button
onclick={{this.click}}
type="button"
<DButton
@action={{this.click}}
class="wizard-subscription-badge {{this.subscription.subscriptionType}}"
title={{this.title}}
@title={{this.title}}
>
<svg
width="300px"
Expand All @@ -28,4 +27,4 @@
</g>
</svg>
<span>{{label}}</span>
</button>
</DButton>
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<button
onclick={{this.click}}
type="button"
<DButton
@action={{this.click}}
class="btn btn-pavilion-support {{this.subscription.subscriptionType}}"
title={{this.title}}
@title={{this.title}}
>
{{d-icon icon}}{{label}}
</button>
</DButton>
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<div class="supplier-authorize">
{{#if authorized}}
{{conditional-loading-spinner size="small" condition=unauthorizing}}
<button
{{action "deauthorize"}}
<DButton
class="deauthorize"
title={{i18n "admin.subscription_client.supplier.deauthorize"}}
role="button"
disabled={{unauthorizing}}
@title={{i18n "admin.subscription_client.supplier.deauthorize"}}
@disabled={{unauthorizing}}
@action={{this.deauthorize}}
>
{{i18n "admin.wizard.subscription.deauthorize"}}
</button>
{{else}}
{{d-button
icon="id-card"
<DButton
@icon="id-card"
class="btn-primary"
label="admin.wizard.subscription.authorize"
title="admin.wizard.subscription.authorize"
action=(action "authorize")
}}
@label="admin.wizard.subscription.authorize"
@title="admin.wizard.subscription.authorize"
@action={{this.authorize}}
/>
{{/if}}
<WizardSubscriptionBadge />
<WizardSubscriptionCta />
Expand Down

0 comments on commit 1fdd78b

Please sign in to comment.