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

+2 -4
View File
@@ -2,16 +2,14 @@
import m from "mithril";
import * as config from "./config";
import * as filterParser from "../common/filter-parser";
const component = {
view: vnode => {
const predefined = vnode.attrs.predefined || [];
let a = m(
"datalist#filters",
Object.values(config.get("ui.filters")).map(f =>
m("option", { value: `${f.parameter} = ` })
)
predefined.map(f => m("option", { value: `${f.parameter} = ` }))
);
if (vnode.attrs.filter !== vnode.state.filter) {