Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-24 02:10:29 +01:00
26 Zeilen
743 B
JavaScript
26 Zeilen
743 B
JavaScript
import Component from "@glimmer/component";
|
|
import { computed } from "@ember/object";
|
|
import { service } from "@ember/service";
|
|
|
|
export default class WizardSubscriptionContainer extends Component {
|
|
@service subscription;
|
|
|
|
@computed("subscription.subscribed")
|
|
get subscribedIcon() {
|
|
return this.subscription.subscribed ? "check" : "times";
|
|
}
|
|
|
|
@computed("subscription.subscribed")
|
|
get subscribedLabel() {
|
|
return `admin.wizard.subscription.${
|
|
this.subscription.subscribed ? "subscribed" : "not_subscribed"
|
|
}.label`;
|
|
}
|
|
|
|
@computed("subscription.subscribed")
|
|
get subscribedTitle() {
|
|
return `admin.wizard.subscription.${
|
|
this.subscription.subscribed ? "subscribed" : "not_subscribed"
|
|
}.title`;
|
|
}
|
|
}
|