0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 13:52:54 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-subscription-container.js

27 Zeilen
753 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";
import { inject as service } from "@ember/service";
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
}
}