Commit 6a1821d9 authored by Jérome Perrin's avatar Jérome Perrin

GUI: allow configuring the label for choose bottleneck

parent 10993e78
......@@ -17,7 +17,7 @@
<body>
<div class="graph_container" style="float:left; width: 100%; height:300px"></div>
<div>
<label for="choices">Please select bottleneck:</label>
<label for="choices" class="select_label">Please select bottleneck:</label>
<select class="choices" name="choices"></select>
</div>
</body>
......
......@@ -33,6 +33,12 @@
var json_data = JSON.parse(simulation_json);
gadget.props.data = json_data.result.result_list[options.result][
options.action_definition.configuration.output_id];
if (options.action_definition.configuration.select_label) {
$(gadget.props.element.querySelector(".select_label")).text(
options.action_definition.configuration.select_label
);
}
});
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment