From 6eebb1c8e1fcd9b4905c0406ce8ca6ab5229f68c Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 31 Jan 2024 15:19:49 -0500 Subject: [PATCH 1/3] feat(vulnerabilities): enhance Vulnerabilities UI to be able to toggle affected projects by active/inactive Signed-off-by: Adam Setch --- .../vulnerabilities/AffectedProjects.vue | 61 ++++++++++++++++++- .../vulnerabilities/VulnerabilityList.vue | 3 +- 2 files changed, 61 insertions(+), 3 deletions(-) diff --git a/src/views/portfolio/vulnerabilities/AffectedProjects.vue b/src/views/portfolio/vulnerabilities/AffectedProjects.vue index f3f3e9a9e..c0cbcf9cd 100644 --- a/src/views/portfolio/vulnerabilities/AffectedProjects.vue +++ b/src/views/portfolio/vulnerabilities/AffectedProjects.vue @@ -1,19 +1,33 @@ diff --git a/src/views/portfolio/vulnerabilities/VulnerabilityList.vue b/src/views/portfolio/vulnerabilities/VulnerabilityList.vue index debf1e8b2..eab9ddec2 100644 --- a/src/views/portfolio/vulnerabilities/VulnerabilityList.vue +++ b/src/views/portfolio/vulnerabilities/VulnerabilityList.vue @@ -53,6 +53,7 @@ import VulnerabilityCreateVulnerabilityModal from "./VulnerabilityCreateVulnerab }, data() { return { + showInactiveProjects: this.showInactiveProjects, columns: [ { title: this.$t('message.name'), @@ -111,7 +112,7 @@ import VulnerabilityCreateVulnerabilityModal from "./VulnerabilityCreateVulnerab }, { title: this.$t('message.projects'), - field: "affectedProjectCount", + field: "affectedActiveProjectCount", class: "tight", sortable: false }, From a480d2545e995b2ddb54d5547c8bf17c84035808 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 31 Jan 2024 15:29:55 -0500 Subject: [PATCH 2/3] feat(vulnerabilities): enhance Vulnerabilities UI to be able to toggle affected projects by active/inactive Signed-off-by: Adam Setch --- src/views/portfolio/vulnerabilities/AffectedProjects.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/portfolio/vulnerabilities/AffectedProjects.vue b/src/views/portfolio/vulnerabilities/AffectedProjects.vue index c0cbcf9cd..890ca55da 100644 --- a/src/views/portfolio/vulnerabilities/AffectedProjects.vue +++ b/src/views/portfolio/vulnerabilities/AffectedProjects.vue @@ -68,7 +68,7 @@ { title: this.$t('message.active'), field: "active", - formatter(value, row, index) { + formatter(value) { return value === true ? '' : ""; }, align: "center", From 470769461409139947dcbc5713a4988c6bb0b8a7 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 31 Jan 2024 16:04:35 -0500 Subject: [PATCH 3/3] feat(vulnerabilities): enhance Vulnerabilities UI to be able to toggle affected projects by active/inactive Signed-off-by: Adam Setch --- src/views/portfolio/vulnerabilities/AffectedProjects.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/portfolio/vulnerabilities/AffectedProjects.vue b/src/views/portfolio/vulnerabilities/AffectedProjects.vue index 890ca55da..bc003f738 100644 --- a/src/views/portfolio/vulnerabilities/AffectedProjects.vue +++ b/src/views/portfolio/vulnerabilities/AffectedProjects.vue @@ -86,6 +86,7 @@ queryParamsType: 'pageSize', pageList: '[10, 25, 50, 100]', pageSize: 10, + toolbar: '#projectsToolbar', icons: { refresh: 'fa-refresh' },