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