From e62ba3c1b668eed1828bf939fdd2de0a619ae87c Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 14 Feb 2023 16:42:26 +0100 Subject: 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. --- pkg/html/html.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkg/html/html.go') 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() } -- cgit mrf-deployment