1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/components/wizard-subscription-container.js.es6

28 Zeilen
810 B
Text

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