2022-03-25 12:18:54 +01:00
|
|
|
import Component from "@ember/component";
|
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
import Subscription from "../mixins/subscription";
|
|
|
|
|
|
|
|
export default Component.extend(Subscription, {
|
|
|
|
classNameBindings: [":wizard-subscription-container", "subscribed"],
|
|
|
|
|
|
|
|
@discourseComputed("subscribed")
|
|
|
|
subscribedIcon(subscribed) {
|
2023-04-03 04:28:06 +02:00
|
|
|
return subscribed ? "check" : "times";
|
2022-03-25 12:18:54 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
@discourseComputed("subscribed")
|
|
|
|
subscribedLabel(subscribed) {
|
2022-09-23 15:52:05 +02:00
|
|
|
return `admin.wizard.subscription.${
|
2022-03-25 12:18:54 +01:00
|
|
|
subscribed ? "subscribed" : "not_subscribed"
|
|
|
|
}.label`;
|
|
|
|
},
|
|
|
|
|
|
|
|
@discourseComputed("subscribed")
|
|
|
|
subscribedTitle(subscribed) {
|
2022-09-23 15:52:05 +02:00
|
|
|
return `admin.wizard.subscription.${
|
2022-03-25 12:18:54 +01:00
|
|
|
subscribed ? "subscribed" : "not_subscribed"
|
|
|
|
}.title`;
|
2022-03-25 12:22:27 +01:00
|
|
|
},
|
2022-03-25 12:18:54 +01:00
|
|
|
});
|