0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +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 <DButton
onclick={{this.click}} @action={{this.click}}
type="button"
class="wizard-subscription-badge {{this.subscription.subscriptionType}}" class="wizard-subscription-badge {{this.subscription.subscriptionType}}"
title={{this.title}} @title={{this.title}}
> >
<svg <svg
width="300px" width="300px"
@ -28,4 +27,4 @@
</g> </g>
</svg> </svg>
<span>{{label}}</span> <span>{{label}}</span>
</button> </DButton>

Datei anzeigen

@ -1,8 +1,7 @@
<button <DButton
onclick={{this.click}} @action={{this.click}}
type="button"
class="btn btn-pavilion-support {{this.subscription.subscriptionType}}" class="btn btn-pavilion-support {{this.subscription.subscriptionType}}"
title={{this.title}} @title={{this.title}}
> >
{{d-icon icon}}{{label}} {{d-icon icon}}{{label}}
</button> </DButton>

Datei anzeigen

@ -1,23 +1,22 @@
<div class="supplier-authorize"> <div class="supplier-authorize">
{{#if authorized}} {{#if authorized}}
{{conditional-loading-spinner size="small" condition=unauthorizing}} {{conditional-loading-spinner size="small" condition=unauthorizing}}
<button <DButton
{{action "deauthorize"}}
class="deauthorize" class="deauthorize"
title={{i18n "admin.subscription_client.supplier.deauthorize"}} @title={{i18n "admin.subscription_client.supplier.deauthorize"}}
role="button" @disabled={{unauthorizing}}
disabled={{unauthorizing}} @action={{this.deauthorize}}
> >
{{i18n "admin.wizard.subscription.deauthorize"}} {{i18n "admin.wizard.subscription.deauthorize"}}
</button> </button>
{{else}} {{else}}
{{d-button <DButton
icon="id-card" @icon="id-card"
class="btn-primary" class="btn-primary"
label="admin.wizard.subscription.authorize" @label="admin.wizard.subscription.authorize"
title="admin.wizard.subscription.authorize" @title="admin.wizard.subscription.authorize"
action=(action "authorize") @action={{this.authorize}}
}} />
{{/if}} {{/if}}
<WizardSubscriptionBadge /> <WizardSubscriptionBadge />
<WizardSubscriptionCta /> <WizardSubscriptionCta />