Ghost/ghost/admin/app/components/gh-members-list-item-column-labs.js
2021-08-13 15:17:07 +02:00

13 lines
325 B
JavaScript

import Component from '@glimmer/component';
export default class GhMembersListItemColumnLabs extends Component {
constructor(...args) {
super(...args);
}
get labels() {
const labelData = this.args.member.get('labels') || [];
return labelData.map(label => label.name).join(', ');
}
}