From 10d9cd1718a02265426c3c4beaaec01d834cbfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Mon, 7 Feb 2022 22:06:56 +0100 Subject: [PATCH] [ui] support adding urls via search --- webui/src/util/search.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webui/src/util/search.ts b/webui/src/util/search.ts index 88b0d08..4117437 100644 --- a/webui/src/util/search.ts +++ b/webui/src/util/search.ts @@ -29,6 +29,9 @@ export async function createLabelled(label: string) { method: "PUT", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ + entity: !label.match("^[\\w]+://[\\w]") + ? undefined + : { t: "Url", c: label }, attribute: "LBL", value: { t: "String",