Ghost/ghost/admin/app/components/gh-members-list-item-column-labs.js
Rishabh 247f24394d Added dynamic columns to member list from filter UI
refs https://github.com/TryGhost/Team/issues/943

- adds new columns to member list table based on selected filters in UI
- handles dynamic columns in members list with formatted output like for labels
- works behind the filtering feature flag
2021-08-10 17:41:59 +05:30

13 lines
324 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(',');
}
}