Implement CSV download for all parameters

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2018-12-27 01:21:18 -08:00
1 parent 4016f3acfd
commit d27247e265
4 files changed
+61 -2

No files matched your search

+9
View File
@@ -115,6 +115,15 @@ const component = {
return m(
".all-parameters",
m(
"a.download-csv",
{
href: `/api/devices/${device["DeviceID.ID"].value[0]}.csv`,
download: "",
style: "float: right;"
},
"Download"
),
search,
m(".parameter-list", m("table", m("tbody", rows)))
);
+1 -1
View File
@@ -528,7 +528,6 @@ span.na {
}
.all-parameters {
font-family: monospace;
& > input {
font-family: monospace;
margin-bottom: 2px;
@@ -537,6 +536,7 @@ span.na {
}
& > .parameter-list {
font-family: monospace;
overflow-y: scroll;
height: 200px;