aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-14 16:42:26 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-14 17:02:43 +0100
commite62ba3c1b668eed1828bf939fdd2de0a619ae87c (patch)
tree57fc3c4529f3cf75f0e433a7ac01811ecfe5b598 /pkg/html
parent9da240155fc0a337128168cddeb3f7e9233ffa4a (diff)
dashboard: display the list of applied filters
Currently it's non obvious whether and what filters are applied to a bug list. Display the list to the user and enable them to drop individual filters.
Diffstat (limited to 'pkg/html')
-rw-r--r--pkg/html/html.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/html/html.go b/pkg/html/html.go
index c89c42fbb..046a35b4c 100644
--- a/pkg/html/html.go
+++ b/pkg/html/html.go
@@ -202,7 +202,11 @@ func AmendURL(baseURL, key, value string) string {
return ""
}
values := parsed.Query()
- values.Set(key, value)
+ if value == "" {
+ values.Del(key)
+ } else {
+ values.Set(key, value)
+ }
parsed.RawQuery = values.Encode()
return parsed.String()
}