0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-18 23:01:11 +02:00

simplify buttons

Dieser Commit ist enthalten in:
merefield 2023-09-24 13:01:46 +01:00
Ursprung 648b976ee0
Commit 6755c70d31
4 geänderte Dateien mit 8 neuen und 8 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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