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');
|
||||
}
|
||||
|
||||
async emaneOptionsClick(event) {
|
||||
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);
|
||||
showConfig(config) {
|
||||
this.$tabHeaders.html('');
|
||||
this.$tabContent.html('');
|
||||
let initialTab = true;
|
||||
|
@ -122,14 +116,30 @@ class ConfigModel {
|
|||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
async emaneModelOptionsClick(event) {
|
||||
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');
|
||||
console.log('emane model clicked');
|
||||
this.$modal.modal('show');
|
||||
console.log('emane model clicked: ', configName);
|
||||
const config = await this.coreRest.getConfig({node: nodeId, name: configName});
|
||||
console.log('emane model options clicked: ', config);
|
||||
this.showConfig(config);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue