[ui] support adding urls via search

This commit is contained in:
Tomáš Mládek 2022-02-07 22:06:56 +01:00
parent d67d6daf6c
commit 10d9cd1718
No known key found for this signature in database
GPG key ID: ED21612889E75EC5

View file

@ -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",