2021-08-10 15:11:22 +03:00
|
|
|
import Component from '@glimmer/component';
|
|
|
|
|
2022-01-27 14:40:11 +03:00
|
|
|
export default class GhMembersListItemColumn extends Component {
|
2021-08-10 15:11:22 +03:00
|
|
|
constructor(...args) {
|
|
|
|
super(...args);
|
|
|
|
}
|
|
|
|
|
|
|
|
get labels() {
|
|
|
|
const labelData = this.args.member.get('labels') || [];
|
2021-08-13 16:17:07 +03:00
|
|
|
return labelData.map(label => label.name).join(', ');
|
2021-08-10 15:11:22 +03:00
|
|
|
}
|
2021-08-16 12:13:23 +03:00
|
|
|
|
|
|
|
get subscriptionStatus() {
|
|
|
|
const subscriptions = this.args.member.get('subscriptions') || [];
|
|
|
|
return subscriptions[0]?.status;
|
|
|
|
}
|
|
|
|
|
|
|
|
get billingPeriod() {
|
|
|
|
const subscriptions = this.args.member.get('subscriptions') || [];
|
|
|
|
const billingPeriod = subscriptions[0]?.price?.interval;
|
|
|
|
return billingPeriod;
|
|
|
|
}
|
2021-08-10 15:11:22 +03:00
|
|
|
}
|