Allow multiple name parameters to optionally be included in GET /arbitrary/resources/search

Also updated SEARCH_QDN_RESOURCES action, to allow multiple names to be optionally specified via the "names" parameter.
This commit is contained in:
CalDescent
2023-04-14 17:17:05 +01:00
parent b08e845dbb
commit 20893879ca
5 changed files with 34 additions and 9 deletions

View File

@@ -201,6 +201,7 @@ window.addEventListener("message", (event) => {
if (data.query != null) url = url.concat("&query=" + data.query);
if (data.identifier != null) url = url.concat("&identifier=" + data.identifier);
if (data.name != null) url = url.concat("&name=" + data.name);
if (data.names != null) data.names.forEach((x, i) => url = url.concat("&name=" + x));
if (data.prefix != null) url = url.concat("&prefix=" + new Boolean(data.prefix).toString());
if (data.default != null) url = url.concat("&default=" + new Boolean(data.default).toString());
if (data.includeStatus != null) url = url.concat("&includestatus=" + new Boolean(data.includeStatus).toString());