74daa02b52
no issue - moved screen-specific components out of the top-level components directory - top-level directory should eventually only contain generally re-usable/application-wide components
20 lines
463 B
JavaScript
20 lines
463 B
JavaScript
import Component from '@glimmer/component';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class MembersListItem extends Component {
|
|
@service store;
|
|
|
|
constructor(...args) {
|
|
super(...args);
|
|
}
|
|
|
|
get hasMultipleTiers() {
|
|
return this.store.peekAll('tier')?.length > 1;
|
|
}
|
|
|
|
get tiers() {
|
|
const tierData = this.args.member?.tiers || [];
|
|
return tierData.map(tier => tier.name).join(', ');
|
|
}
|
|
}
|