From 1291d932f160bf104715be631a45cd5a71878d90 Mon Sep 17 00:00:00 2001 From: Ronny Perinke <23166289+sephiroth-j@users.noreply.github.com> Date: Sat, 4 Jan 2025 18:28:35 +0100 Subject: [PATCH 1/2] update url and refresh the table when `vulnId` changes fixes #481 Signed-off-by: Ronny Perinke <23166289+sephiroth-j@users.noreply.github.com> --- src/views/portfolio/vulnerabilities/AffectedProjects.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/portfolio/vulnerabilities/AffectedProjects.vue b/src/views/portfolio/vulnerabilities/AffectedProjects.vue index ad93410e7..bf38c0a93 100644 --- a/src/views/portfolio/vulnerabilities/AffectedProjects.vue +++ b/src/views/portfolio/vulnerabilities/AffectedProjects.vue @@ -152,6 +152,10 @@ export default { this.currentPage = 1; this.refreshTable(); }, + vulnId() { + // update url when vulnId changes, will trigger table refresh + this.$refs.table.refreshOptions({...this.options, url: this.apiUrl()}); + }, }, }; From 3d176bd0d537bab7844404662ac1ca8e4d6816be Mon Sep 17 00:00:00 2001 From: nscuro Date: Sat, 11 Jan 2025 19:47:24 +0100 Subject: [PATCH 2/2] Fix linter formatting issue Signed-off-by: nscuro --- 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 bf38c0a93..050ffe2c9 100644 --- a/src/views/portfolio/vulnerabilities/AffectedProjects.vue +++ b/src/views/portfolio/vulnerabilities/AffectedProjects.vue @@ -154,7 +154,7 @@ export default { }, vulnId() { // update url when vulnId changes, will trigger table refresh - this.$refs.table.refreshOptions({...this.options, url: this.apiUrl()}); + this.$refs.table.refreshOptions({ ...this.options, url: this.apiUrl() }); }, }, };