diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-07-03 16:00:52 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-07-04 09:25:11 +0000 |
| commit | dc6bbff0c2fe403c39d8a1d057f668088b09069f (patch) | |
| tree | d30f9427959a36f1fe7c080a010ed9c61d217414 /dashboard/app/handler.go | |
| parent | 3f2748a3a15aac63efeb991dee40bfc870ae581d (diff) | |
dashboard/app: make coverage menu and page optional
Diffstat (limited to 'dashboard/app/handler.go')
| -rw-r--r-- | dashboard/app/handler.go | 2 |
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 } |
