Ghost/ghost/admin/app/components/gh-posts-list-item.js
Kevin Ansfield ec925a60b0 Converted <GhPostsListItem> to glimmer component
no issue

- moved tag name and classes into template
- updated backing class to native class syntax
2020-07-01 20:37:46 +01:00

11 lines
309 B
JavaScript

import Component from '@glimmer/component';
import {inject as service} from '@ember/service';
export default class GhPostsListItemComponent extends Component {
@service session;
get authorNames() {
return this.args.post.authors.map(author => author.name || author.email).join(', ');
}
}