mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Improve vulnerability list page (#14031)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
63831dfd08
commit
9a897af67e
@ -222,7 +222,7 @@ export class ArtifactVulnerabilitiesComponent implements OnInit, OnDestroy {
|
|||||||
this.projectService.getProject(this.projectId).subscribe(
|
this.projectService.getProject(this.projectId).subscribe(
|
||||||
projectRes => {
|
projectRes => {
|
||||||
if (projectRes && projectRes.cve_allowlist
|
if (projectRes && projectRes.cve_allowlist
|
||||||
&& projectRes.metadata && projectRes.metadata.reuse_sys_cve_allowlist !== "true"
|
&& projectRes.metadata && projectRes.metadata.reuse_sys_cve_allowlist === "false"
|
||||||
) { // use project CVE allow list
|
) { // use project CVE allow list
|
||||||
this.currentCVEList = projectRes.cve_allowlist['items'];
|
this.currentCVEList = projectRes.cve_allowlist['items'];
|
||||||
} else { // use system CVE allow list
|
} else { // use system CVE allow list
|
||||||
|
Loading…
Reference in New Issue
Block a user