Fixed affected projects not appearing in some views

This commit is contained in:
Šesták Vít
2017-08-02 09:55:41 +02:00
parent f8e073cc54
commit a155188fec
4 changed files with 7 additions and 5 deletions

View File

@@ -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"))
}
}
}

View File

@@ -8,7 +8,8 @@
@dependencyDetailsInner(
depPrefix = depPrefix,
selectorOption = selectorOption,
dep = dep
dep = dep,
showAffectedProjects = true
)
}
</div>

View File

@@ -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 {

View File

@@ -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)
}