[ui] support adding urls via search

feat/vaults
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
1 changed files with 3 additions and 0 deletions

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