web app, get emane models for sessions joined and default emane nodes to the first model

This commit is contained in:
Blake J. Harnden 2018-05-16 16:09:57 -07:00
parent 8889d121c0
commit ddfa0ddfa4
2 changed files with 20 additions and 17 deletions

View file

@ -273,10 +273,8 @@ class NodeEditModal {
this.$formCustom.html('');
if (node.type === CoreNodeHelper.emaneNode) {
const response = await this.coreRest.getEmaneModels();
this.$formCustom.append($('<label>', {class: 'form-label', text: 'EMANE Model'}));
console.log('emane models: ', response);
for (let model of response.models) {
for (let model of this.coreNetwork.emaneModels) {
const checked = node.emane === model;
const label = model.split('_')[1];
const $radio = createRadio('emane', model, label, checked);