mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-15 08:14:02 +01:00
Fixed affected projects not appearing in some views
This commit is contained in:
@@ -319,8 +319,9 @@ class Statistics @Inject()(
|
||||
Future.successful(Ok(views.html.dependencyDetailsInner(
|
||||
depPrefix = depPrefix,
|
||||
dep = selection.result.groupedDependenciesByHashes(depId),
|
||||
selectorOption = selectorOption)
|
||||
).withHeaders("Content-type" -> "text/plain; charset=utf-8"))
|
||||
selectorOption = selectorOption,
|
||||
showAffectedProjects = true
|
||||
)).withHeaders("Content-type" -> "text/plain; charset=utf-8"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
@dependencyDetailsInner(
|
||||
depPrefix = depPrefix,
|
||||
selectorOption = selectorOption,
|
||||
dep = dep
|
||||
dep = dep,
|
||||
showAffectedProjects = true
|
||||
)
|
||||
}
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
@(depPrefix: String, dep: GroupedDependency, selectorOption: Option[String], showAffectedProjects: Boolean = false, expandVulnerabilities: Boolean = false, vulnerabilitySearch: Boolean = true)
|
||||
@(depPrefix: String, dep: GroupedDependency, selectorOption: Option[String], showAffectedProjects: Boolean, expandVulnerabilities: Boolean = false, vulnerabilitySearch: Boolean = true)
|
||||
|
||||
@if(vulnerabilitySearch){
|
||||
@vulnerableSoftwareSearches(dep) match {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@(dep: GroupedDependency, selectorOption: Option[String])(implicit req: DefaultRequest, messages: Messages, mainTemplateData: MainTemplateData)
|
||||
@main("Library details"){
|
||||
@libraryIdentificationList(dep, None, addLink = false, addButtons = false)
|
||||
@dependencyDetailsInner(depPrefix = "library-single-", dep = dep, selectorOption = selectorOption)
|
||||
@dependencyDetailsInner(depPrefix = "library-single-", dep = dep, selectorOption = selectorOption, showAffectedProjects = true)
|
||||
}
|
||||
Reference in New Issue
Block a user