[ui] support adding urls via search
parent
d67d6daf6c
commit
10d9cd1718
|
@ -29,6 +29,9 @@ export async function createLabelled(label: string) {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
entity: !label.match("^[\\w]+://[\\w]")
|
||||||
|
? undefined
|
||||||
|
: { t: "Url", c: label },
|
||||||
attribute: "LBL",
|
attribute: "LBL",
|
||||||
value: {
|
value: {
|
||||||
t: "String",
|
t: "String",
|
||||||
|
|
Loading…
Reference in New Issue