From dc6bbff0c2fe403c39d8a1d057f668088b09069f Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Wed, 3 Jul 2024 16:00:52 +0200 Subject: dashboard/app: make coverage menu and page optional --- dashboard/app/handler.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dashboard/app/handler.go') 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 } -- cgit mrf-deployment