Preset's query as devices url

Make the preset's query to hold it's devices url.
This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent a4a1e722aa
commit 14e0e95da5
1 file changed
+7 -5
+7 -5
View File
@@ -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"])
)
);
}