0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-24 10:20:28 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-subscription-container.js

27 Zeilen
743 B
JavaScript

2023-09-24 12:58:20 +02:00
import Component from "@glimmer/component";
2023-09-24 11:01:08 +02:00
import { computed } from "@ember/object";
2024-11-22 17:11:51 +01:00
import { service } from "@ember/service";
2023-09-24 11:01:08 +02:00
export default class WizardSubscriptionContainer extends Component {
@service subscription;
@computed("subscription.subscribed")
get subscribedIcon() {
return this.subscription.subscribed ? "check" : "times";
2023-09-24 12:58:20 +02:00
}
2023-09-24 11:01:08 +02:00
@computed("subscription.subscribed")
get subscribedLabel() {
return `admin.wizard.subscription.${
this.subscription.subscribed ? "subscribed" : "not_subscribed"
}.label`;
2023-09-24 12:58:20 +02:00
}
2023-09-24 11:01:08 +02:00
@computed("subscription.subscribed")
get subscribedTitle() {
return `admin.wizard.subscription.${
this.subscription.subscribed ? "subscribed" : "not_subscribed"
}.title`;
2023-09-24 12:58:20 +02:00
}
}