Implement faults page

This commit is contained in:
Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent b24c3626ac
commit 3cfac28fb1
16 files changed
+643 -246

No files matched your search

+6 -3
View File
@@ -8,9 +8,11 @@ import * as notifications from "../notifications";
const component = {
view: vnode => {
return m(
"a.summon",
"button.primary",
{
onclick: () => {
title: "Initiate session and refresh basic parameters",
onclick: e => {
e.target.disabled = true;
const params = Object.values(vnode.attrs.parameters);
const task = {
name: "getParameterValues",
@@ -37,7 +39,8 @@ const component = {
else notifications.push("success", `${deviceId}: Summoned`);
})
.then(() => {
store.fulfill(Date.now(), Date.now());
e.target.disabled = false;
store.fulfill(0, Date.now());
});
}
},