diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-04-11 17:31:44 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-04-12 20:25:53 +0200 |
| commit | 438fca29ec1aa5807b7f91120e4f6ff7f05a5c5b (patch) | |
| tree | 22ae69993da36482f50d9154c1ff42f07b3591d7 | |
| parent | fe81a6e2c90be34614d4cf7cba4733bda6a007c4 (diff) | |
dashboard: conditionally expand the similar bugs section
Expand it by default for non-public namespaces.
| -rw-r--r-- | dashboard/app/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
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, }) |
