Ghost/ghost/admin/app/components/members/list-item-column.js
Simon Backx b821c84b9e
Cleaned up member filters (#15784)
fixes https://github.com/TryGhost/Team/issues/2134
fixes https://github.com/TryGhost/Team/issues/2133

- Moved all filters to separate files to make the filter component a lot more readable and easier to maintain.
- Removed long switch style code from hbs for filter column values
- Filters for features that are disabled (such as open tracking, click tracking or member attribution) are now hidden when they are disabled
- The open rate column in the members table is now only visible if open tracking is enabled
2022-11-10 11:05:12 +01:00

16 lines
381 B
JavaScript

import Component from '@glimmer/component';
export default class MembersListItemColumn extends Component {
constructor(...args) {
super(...args);
}
get columnName() {
return this.args.filterColumn.name;
}
get columnValue() {
return this.args.filterColumn?.getValue ? this.args.filterColumn?.getValue(this.args.member) : null;
}
}