0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-21 17:00:29 +01:00

convert buttons to DButton

Dieser Commit ist enthalten in:
merefield 2023-09-24 12:52:42 +01:00
Ursprung c89dbbb7a8
Commit 1fdd78bc7e
3 geänderte Dateien mit 18 neuen und 21 gelöschten Zeilen

Datei anzeigen

@ -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"
@ -28,4 +27,4 @@
</g>
</svg>
<span>{{label}}</span>
</button>
</DButton>

Datei anzeigen

@ -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>

Datei anzeigen

@ -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 />