mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-24 18:12:25 +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(
|
Future.successful(Ok(views.html.dependencyDetailsInner(
|
||||||
depPrefix = depPrefix,
|
depPrefix = depPrefix,
|
||||||
dep = selection.result.groupedDependenciesByHashes(depId),
|
dep = selection.result.groupedDependenciesByHashes(depId),
|
||||||
selectorOption = selectorOption)
|
selectorOption = selectorOption,
|
||||||
).withHeaders("Content-type" -> "text/plain; charset=utf-8"))
|
showAffectedProjects = true
|
||||||
|
)).withHeaders("Content-type" -> "text/plain; charset=utf-8"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
@dependencyDetailsInner(
|
@dependencyDetailsInner(
|
||||||
depPrefix = depPrefix,
|
depPrefix = depPrefix,
|
||||||
selectorOption = selectorOption,
|
selectorOption = selectorOption,
|
||||||
dep = dep
|
dep = dep,
|
||||||
|
showAffectedProjects = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</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){
|
@if(vulnerabilitySearch){
|
||||||
@vulnerableSoftwareSearches(dep) match {
|
@vulnerableSoftwareSearches(dep) match {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@(dep: GroupedDependency, selectorOption: Option[String])(implicit req: DefaultRequest, messages: Messages, mainTemplateData: MainTemplateData)
|
@(dep: GroupedDependency, selectorOption: Option[String])(implicit req: DefaultRequest, messages: Messages, mainTemplateData: MainTemplateData)
|
||||||
@main("Library details"){
|
@main("Library details"){
|
||||||
@libraryIdentificationList(dep, None, addLink = false, addButtons = false)
|
@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