[ui] support adding urls via search
This commit is contained in:
parent
d67d6daf6c
commit
10d9cd1718
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue