Skip to content

Commit

Permalink
remove comma
Browse files Browse the repository at this point in the history
Signed-off-by: Valentijn Scholten <valentijnscholten@gmail.com>
  • Loading branch information
valentijnscholten committed Apr 15, 2023
1 parent 7be3742 commit b326105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/portfolio/projects/ProjectList.vue
Expand Up @@ -185,10 +185,10 @@
sortable: true,
visible: false,
formatter(value, row, index) {
let tag_string = row.tags.slice(0, 2)?.map(tag => common.formatProjectTagLabel(tag)).join(', ') || '';
let tag_string = row.tags.slice(0, 2)?.map(tag => common.formatProjectTagLabel(tag)).join(' ') || '';
if (row.tags.length > 2) {
tag_string += `, <span class="d-none">`
tag_string += row.tags.slice(2)?.map(tag => common.formatProjectTagLabel(tag)).join(', ');
tag_string += ` <span class="d-none">`
tag_string += row.tags.slice(2)?.map(tag => common.formatProjectTagLabel(tag)).join(' ');
tag_string += `</span>`
tag_string += `<a href="#" title="show all tags" class="badge badge-tag" onclick="this.previousElementSibling.classList.toggle('d-none')">…</a>`
}
Expand Down

0 comments on commit b326105

Please sign in to comment.