Database initialization wizard

This commit is contained in:
Zaid Abdulla committed 2019-07-11 17:47:36 -07:00
1 parent b51c97e97a
commit 6cb0d0449b
10 files changed
+613 -19

No files matched your search

+6
View File
@@ -69,6 +69,12 @@ export function init(args): Promise<{}> {
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
const indexParameters = Object.values(config.ui.index);
if (!indexParameters.length) {
indexParameters.push({
label: "ID",
parameter: ["PARAM", "DeviceID.ID"]
});
}
resolve({ filter, indexParameters, sort });
});
}