Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 11:52:54 +01:00
convert buttons to DButton
Dieser Commit ist enthalten in:
Ursprung
c89dbbb7a8
Commit
1fdd78bc7e
3 geänderte Dateien mit 18 neuen und 21 gelöschten Zeilen
|
@ -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>
|
|
@ -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>
|
|
@ -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 />
|
||||
|
|
Laden …
In neuem Issue referenzieren