web app, initial working emane model config
This commit is contained in:
parent
c90ee5fc84
commit
aa55daf2e8
1 changed files with 19 additions and 9 deletions
|
@ -91,13 +91,7 @@ class ConfigModel {
|
||||||
this.$modal.modal('hide');
|
this.$modal.modal('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
async emaneOptionsClick(event) {
|
showConfig(config) {
|
||||||
this.$nodeEditModal.modal('hide');
|
|
||||||
const nodeId = this.$nodeEditModal.data('node');
|
|
||||||
this.$modal.data('type', 'emane');
|
|
||||||
this.$title.text('EMANE Options');
|
|
||||||
const config = await this.coreRest.getConfig({node: nodeId, name: 'emane'});
|
|
||||||
console.log('emane options clicked: ', config);
|
|
||||||
this.$tabHeaders.html('');
|
this.$tabHeaders.html('');
|
||||||
this.$tabContent.html('');
|
this.$tabContent.html('');
|
||||||
let initialTab = true;
|
let initialTab = true;
|
||||||
|
@ -122,14 +116,30 @@ class ConfigModel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.$modal.modal('show');
|
this.$modal.modal('show');
|
||||||
|
}
|
||||||
|
|
||||||
|
async emaneOptionsClick(event) {
|
||||||
|
this.$nodeEditModal.modal('hide');
|
||||||
|
const nodeId = this.$nodeEditModal.data('node');
|
||||||
|
const configName = 'emane';
|
||||||
|
this.$modal.data('type', configName);
|
||||||
|
this.$title.text('EMANE Options');
|
||||||
|
const config = await this.coreRest.getConfig({node: nodeId, name: configName});
|
||||||
|
console.log('emane options clicked: ', config);
|
||||||
|
this.showConfig(config);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async emaneModelOptionsClick(event) {
|
async emaneModelOptionsClick(event) {
|
||||||
this.$nodeEditModal.modal('hide');
|
this.$nodeEditModal.modal('hide');
|
||||||
|
const nodeId = this.$nodeEditModal.data('node');
|
||||||
|
const configName = this.$nodeEditModal.find('input[name=emane]:checked').val();
|
||||||
|
this.$modal.data('type', configName);
|
||||||
this.$title.text('EMANE Model Options');
|
this.$title.text('EMANE Model Options');
|
||||||
console.log('emane model clicked');
|
console.log('emane model clicked: ', configName);
|
||||||
this.$modal.modal('show');
|
const config = await this.coreRest.getConfig({node: nodeId, name: configName});
|
||||||
|
console.log('emane model options clicked: ', config);
|
||||||
|
this.showConfig(config);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue