aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/app/handler.go')
-rw-r--r--dashboard/app/handler.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dashboard/app/handler.go b/dashboard/app/handler.go
index d6f9b6861..145f79ef9 100644
--- a/dashboard/app/handler.go
+++ b/dashboard/app/handler.go
@@ -206,6 +206,7 @@ type uiHeader struct {
MissingBackports int
Namespaces []uiNamespace
ShowSubsystems bool
+ ShowCoverageMenu bool
}
type uiNamespace struct {
@@ -290,6 +291,7 @@ func commonHeader(c context.Context, r *http.Request, w http.ResponseWriter, ns
}
h.BugCounts = &cached.Total
h.MissingBackports = cached.MissingBackports
+ h.ShowCoverageMenu = getNsConfig(c, ns).Coverage != nil
}
return h, nil
}