diff --git a/src/views/globalAudit/VulnerabilityAuditByOccurrence.vue b/src/views/globalAudit/VulnerabilityAuditByOccurrence.vue index 806e1f351..6dd9bd2c9 100644 --- a/src/views/globalAudit/VulnerabilityAuditByOccurrence.vue +++ b/src/views/globalAudit/VulnerabilityAuditByOccurrence.vue @@ -596,6 +596,33 @@ export default { return `${xssFilters.inHTMLData(name)}`; }, }, + { + title: this.$t('message.tags'), + field: 'component.tags', + sortable: false, + visible: false, + routerFunc: () => this.$router, + formatter(value, row, index) { + const router = this.routerFunc(); + const tags = row.component.tags; + let tag_string = ''; + if (tags) { + tag_string = + tags.slice(0, 2) + .map((tag) => common.formatProjectTagLabel(router, tag)) + .join(' ') || ''; + if (tags.length > 2) { + tag_string += ` `; + tag_string += tags.slice(2) + ?.map((tag) => common.formatProjectTagLabel(router, tag)) + .join(' '); + tag_string += ``; + tag_string += ``; + } + } + return tag_string; + }, + }, { title: this.$t('message.component'), field: 'component.name',