0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/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
},
});