Use nested config structure
This commit is contained in:
1 parent
581a510960
commit
30dbf0cf40
15 files changed
+366
-251
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
import m from "mithril";
|
||||
|
||||
import * as config from "./config";
|
||||
import config from "./config";
|
||||
import Filter from "../common/filter";
|
||||
import * as store from "./store";
|
||||
import * as components from "./components";
|
||||
@@ -25,7 +25,7 @@ const component = {
|
||||
|
||||
let dev = store.fetch("devices", vnode.attrs.deviceFilter).value;
|
||||
if (!dev.length) return "Loading";
|
||||
const conf = config.get("ui.device");
|
||||
const conf = config.ui.device;
|
||||
const cmps = [];
|
||||
|
||||
for (let c of Object.values(conf))
|
||||
|
||||
Reference in new issue
Block a user