mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
b821c84b9e
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
16 lines
381 B
JavaScript
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;
|
|
}
|
|
}
|