Implement TR-069 Upload method
This commit is contained in:
1 parent
d29448e3a7
commit
dae521ae89
22 files changed
+1016
-68
No files matched your search
@@ -22,6 +22,7 @@ import { m } from "../components";
|
||||
import * as taskQueue from "../task-queue";
|
||||
import * as notifications from "../notifications";
|
||||
import * as store from "../store";
|
||||
import * as overlay from "../overlay";
|
||||
|
||||
const component: ClosureComponent = (): Component => {
|
||||
return {
|
||||
@@ -78,6 +79,30 @@ const component: ClosureComponent = (): Component => {
|
||||
)
|
||||
);
|
||||
|
||||
buttons.push(
|
||||
m(
|
||||
"button.primary",
|
||||
{
|
||||
title: "Fetch files from device",
|
||||
onclick: () => {
|
||||
const deviceId = device["DeviceID.ID"].value[0];
|
||||
overlay.open(() => {
|
||||
const dev = store.fetch("devices", [
|
||||
"=",
|
||||
["PARAM", "DeviceID.ID"],
|
||||
deviceId,
|
||||
]);
|
||||
return [
|
||||
m("h3", `Uploads from ${deviceId}`),
|
||||
m("device-uploads", { device: dev.value[0] }),
|
||||
];
|
||||
});
|
||||
},
|
||||
},
|
||||
"Uploads"
|
||||
)
|
||||
);
|
||||
|
||||
buttons.push(
|
||||
m(
|
||||
"button.primary",
|
||||
|
||||
Reference in new issue
Block a user