1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/components/gh-posts-list-item.js
Kevin Ansfield e9fe7eec40 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

10 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(', ');
}
}