web app added initial basic linking to wlan nodes

This commit is contained in:
Blake J. Harnden 2018-05-15 10:11:55 -07:00
parent 014dea2dd0
commit c4d8dcbdf5
2 changed files with 54 additions and 5 deletions

View file

@ -216,6 +216,10 @@ class NodeContext {
console.log('error showing services modal: ', err);
});
break;
case 'linkrf':
console.log('linking all routers');
self.coreNetwork.linkAllRouters(nodeId);
break;
case 'delete':
self.coreNetwork.deleteNode(nodeId);
break;
@ -428,14 +432,14 @@ class InfoPanel {
this.$infoCard.addClass('visible');
this.$infoCardHeader.text('Edge');
this.$infoCardTable.find('tbody tr').remove();
this.addInfoTable(nodeOne.name, null);
const interfaceOne = link.interfaceOne;
if (interfaceOne) {
this.addInfoTable(nodeOne.name, null);
this.addInterfaceInfo(interfaceOne);
}
this.addInfoTable(nodeTwo.name, null);
const interfaceTwo = link.interfaceTwo;
if (interfaceTwo) {
this.addInfoTable(nodeTwo.name, null);
this.addInterfaceInfo(interfaceTwo);
}
this.addInfoTable('Bandwidth', edge.link.bandwidth);