mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 01:58:35 +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(
|
||||
projectRes => {
|
||||
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
|
||||
this.currentCVEList = projectRes.cve_allowlist['items'];
|
||||
} else { // use system CVE allow list
|
||||
|
Loading…
Reference in New Issue
Block a user