2021-09-24 11:58:42 +02:00
|
|
|
import Component from "@ember/component";
|
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
classNameBindings: [":subscription-container", "subscribed"],
|
|
|
|
|
2021-10-19 14:49:06 +02:00
|
|
|
@discourseComputed("subscribed")
|
2021-09-24 11:58:42 +02:00
|
|
|
subscribedIcon(subscribed) {
|
2021-10-19 14:49:06 +02:00
|
|
|
return subscribed ? "check" : "dash";
|
2021-09-24 11:58:42 +02:00
|
|
|
},
|
|
|
|
|
2021-10-19 14:49:06 +02:00
|
|
|
@discourseComputed("subscribed")
|
2021-09-24 11:58:42 +02:00
|
|
|
subscribedLabel(subscribed) {
|
2021-10-19 14:49:06 +02:00
|
|
|
return `admin.wizard.subscription_container.${
|
|
|
|
subscribed ? "subscribed" : "not_subscribed"
|
|
|
|
}.label`;
|
2021-09-24 11:58:42 +02:00
|
|
|
},
|
|
|
|
|
2021-10-19 14:49:06 +02:00
|
|
|
@discourseComputed("subscribed")
|
2021-09-24 11:58:42 +02:00
|
|
|
subscribedTitle(subscribed) {
|
2021-10-19 14:49:06 +02:00
|
|
|
return `admin.wizard.subscription_container.${
|
|
|
|
subscribed ? "subscribed" : "not_subscribed"
|
|
|
|
}.title`;
|
|
|
|
},
|
|
|
|
});
|