Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +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}}
|
@action={{this.click}}
|
||||||
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"
|
||||||
|
@ -26,5 +27,5 @@
|
||||||
></path>
|
></path>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
<span>{{label}}</span>
|
<span>{{this.label}}</span>
|
||||||
</DButton>
|
</DButton>
|
|
@ -18,7 +18,7 @@ export default class WizardSubscriptionBadge extends Component {
|
||||||
|
|
||||||
@computed("i18nKey")
|
@computed("i18nKey")
|
||||||
get title() {
|
get title() {
|
||||||
return I18n.t(`${this.i18nKey}.title`);
|
return `${this.i18nKey}.title`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed("i18nKey")
|
@computed("i18nKey")
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
@action={{this.click}}
|
@action={{this.click}}
|
||||||
class="btn btn-pavilion-support {{this.subscription.subscriptionType}}"
|
class="btn btn-pavilion-support {{this.subscription.subscriptionType}}"
|
||||||
@title={{this.title}}
|
@title={{this.title}}
|
||||||
>
|
@label={{this.label}}
|
||||||
{{d-icon icon}}{{label}}
|
@icon="{{this.icon}}"
|
||||||
</DButton>
|
/>
|
|
@ -1,6 +1,5 @@
|
||||||
import { inject as service } from "@ember/service";
|
import { inject as service } from "@ember/service";
|
||||||
import { action, computed } from "@ember/object";
|
import { action, computed } from "@ember/object";
|
||||||
import I18n from "I18n";
|
|
||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
|
|
||||||
export default class WizardSubscriptionCta extends Component {
|
export default class WizardSubscriptionCta extends Component {
|
||||||
|
@ -20,12 +19,12 @@ export default class WizardSubscriptionCta extends Component {
|
||||||
|
|
||||||
@computed("i18nKey")
|
@computed("i18nKey")
|
||||||
get title() {
|
get title() {
|
||||||
return I18n.t(`${this.i18nKey}.title`);
|
return `${this.i18nKey}.title`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed("i18nKey")
|
@computed("i18nKey")
|
||||||
get label() {
|
get label() {
|
||||||
return I18n.t(`${this.i18nKey}.label`);
|
return `${this.i18nKey}.label`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
|
Laden …
In neuem Issue referenzieren