Add position field and proper logging configuration

This commit is contained in:
2025-07-24 12:13:16 +02:00
parent 31d30c6db3
commit 5ec9319b3f
4 changed files with 17 additions and 3 deletions

View File

@@ -107,6 +107,11 @@
window.EVOLV.nodes['advancedReactor'].loggerMenu.saveEditor(this);
}
// save position field
if (window.EVOLV?.nodes?.measurement?.positionMenu?.saveEditor) {
window.EVOLV.nodes.rotatingMachine.positionMenu.saveEditor(this);
}
let volume = parseFloat($("#node-input-volume").typedInput("value"));
if (isNaN(volume) || volume <= 0) {
RED.notify("Fluid volume not set correctly", {type: "error"});
@@ -215,6 +220,10 @@
<!-- Logger fields injected here -->
<div id="logger-fields-placeholder"></div>
<!-- Position fields will be injected here -->
<div id="position-fields-placeholder"></div>
</script>
<script type="text/html" data-help-name="advancedReactor">