Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
26 Zeilen
757 B
JavaScript
26 Zeilen
757 B
JavaScript
import Component from '@glimmer/component';
|
|
import { computed } from "@ember/object";
|
|
import { inject as 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`;
|
|
};
|
|
};
|