Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 02:30:28 +01:00
simplify buttons
Dieser Commit ist enthalten in:
Ursprung
648b976ee0
Commit
6755c70d31
4 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen
|
@ -2,6 +2,7 @@
|
|||
@action={{this.click}}
|
||||
class="wizard-subscription-badge {{this.subscription.subscriptionType}}"
|
||||
@title={{this.title}}
|
||||
|
||||
>
|
||||
<svg
|
||||
width="300px"
|
||||
|
@ -26,5 +27,5 @@
|
|||
></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span>{{label}}</span>
|
||||
<span>{{this.label}}</span>
|
||||
</DButton>
|
|
@ -18,7 +18,7 @@ export default class WizardSubscriptionBadge extends Component {
|
|||
|
||||
@computed("i18nKey")
|
||||
get title() {
|
||||
return I18n.t(`${this.i18nKey}.title`);
|
||||
return `${this.i18nKey}.title`;
|
||||
}
|
||||
|
||||
@computed("i18nKey")
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
@action={{this.click}}
|
||||
class="btn btn-pavilion-support {{this.subscription.subscriptionType}}"
|
||||
@title={{this.title}}
|
||||
>
|
||||
{{d-icon icon}}{{label}}
|
||||
</DButton>
|
||||
@label={{this.label}}
|
||||
@icon="{{this.icon}}"
|
||||
/>
|
|
@ -1,6 +1,5 @@
|
|||
import { inject as service } from "@ember/service";
|
||||
import { action, computed } from "@ember/object";
|
||||
import I18n from "I18n";
|
||||
import Component from "@glimmer/component";
|
||||
|
||||
export default class WizardSubscriptionCta extends Component {
|
||||
|
@ -20,12 +19,12 @@ export default class WizardSubscriptionCta extends Component {
|
|||
|
||||
@computed("i18nKey")
|
||||
get title() {
|
||||
return I18n.t(`${this.i18nKey}.title`);
|
||||
return `${this.i18nKey}.title`;
|
||||
}
|
||||
|
||||
@computed("i18nKey")
|
||||
get label() {
|
||||
return I18n.t(`${this.i18nKey}.label`);
|
||||
return `${this.i18nKey}.label`;
|
||||
}
|
||||
|
||||
@action
|
||||
|
|
Laden …
In neuem Issue referenzieren