From 438fca29ec1aa5807b7f91120e4f6ff7f05a5c5b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 11 Apr 2023 17:31:44 +0200 Subject: dashboard: conditionally expand the similar bugs section Expand it by default for non-public namespaces. --- dashboard/app/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 193d4d69c..482b81a33 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -739,6 +739,7 @@ func handleBug(c context.Context, w http.ResponseWriter, r *http.Request) error if len(similar.Bugs) > 0 { sections = append(sections, &uiCollapsible{ Title: fmt.Sprintf("Similar bugs (%d)", len(similar.Bugs)), + Show: config.Namespaces[hdr.Namespace].AccessLevel != AccessPublic, Type: sectionBugList, Value: similar, }) -- cgit mrf-deployment