mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
21b4b15a1c
Updated email newsletter settings - Added toggle to disable email newsletters - Hides email related UI when email is completely turned off - Rearranged email newsletter settings - Added publish-menu preview in - Changed default-recipients setting - Updated publish-menu to show Publish as default action - Removed the confirmation modal during publishing when no emails are intended to be sent
24 lines
678 B
JavaScript
24 lines
678 B
JavaScript
import Component from '@glimmer/component';
|
|
|
|
export default class GhMembersListItemColumn extends Component {
|
|
constructor(...args) {
|
|
super(...args);
|
|
}
|
|
|
|
get labels() {
|
|
const labelData = this.args.member.get('labels') || [];
|
|
return labelData.map(label => label.name).join(', ');
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|