use api for local list to normalize with exports and for future encryption options

This commit is contained in:
Stewart Allen 2020-07-11 21:22:52 -04:00
commit 5a3c1e0ca3

View file

@ -1884,16 +1884,14 @@
function showLocal() {
showModal('local');
fetch("https://live.grid.space/api/grid_local")
.then(r => r.json())
.then(j => {
API.probe.local((err,data) => {
let devc = 0;
let bind = [];
let html = ['<table>'];
html.push(`<thead><tr><th>device</th><th>type</th><th>status</th><th></th></tr></thead>`);
html.push(`<tbody>`);
for (let k in j) {
let r = j[k].stat;
for (let k in data) {
let r = data[k].stat;
bind.push({uuid: r.device.uuid, host: r.device.addr[0], port: r.device.port});
html.push(`<tr>`);
html.push(`<td>${r.device.name}</td>`);