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