Preset's query as devices url
Make the preset's query to hold it's devices url.
This commit is contained in:
1 parent
a4a1e722aa
commit
14e0e95da5
1 file changed
+7
-5
@@ -67,8 +67,7 @@ function renderTable(
|
||||
"Events",
|
||||
"Precondition",
|
||||
"Provision",
|
||||
"Arguments",
|
||||
""
|
||||
"Arguments"
|
||||
].map(l => m("th", l));
|
||||
|
||||
let rows = [];
|
||||
@@ -111,10 +110,13 @@ function renderTable(
|
||||
m("td", preset["weight"]),
|
||||
m("td", preset["schedule"]),
|
||||
m("td", preset["events"]),
|
||||
m("td", { title: preset["precondition"] }, preset["precondition"]),
|
||||
m(
|
||||
"td",
|
||||
{ title: preset["precondition"] },
|
||||
m("a", { href: devicesUrl }, preset["precondition"])
|
||||
),
|
||||
m("td", preset["provision"]),
|
||||
m("td", preset["provision_args"]),
|
||||
m("td", m("a", { href: devicesUrl }, "Devices"))
|
||||
m("td", preset["provision_args"])
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user