Commit 8fb8c104 authored by Yoran Hillion's avatar Yoran Hillion
Browse files

feat: Adds managers name to public projects on home page

parent 628244e3
......@@ -340,13 +340,17 @@ export default {
...mapGetters('community', ['projectList']),
crudListItems() {
return this.projectList.pageContent
.map((project) => ({
id: project.id,
title: this.textTruncate(project.name, 50),
description: this.textTruncate(this.stripHtml(project.description), 150),
thumbnail: project.thumbnails.m,
to: { name: 'projectPublic', params: { projectId: project.id } },
}));
.map((project) => {
const managers = project.managers.map(m => m.name).join(', ');
return {
id: project.id,
title: this.textTruncate(project.name, 50),
subtitle: `${this.$t('project.subtitles.managers', { managers, label: this.$tc('project.managers', project.managers.length) })}`,
description: this.textTruncate(this.stripHtml(project.description), 150),
thumbnail: project.thumbnails.m,
to: { name: 'projectPublic', params: { projectId: project.id } },
}
});
},
},
watch: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment