Generic updates completed for now

This commit is contained in:
znetsixe
2025-07-01 15:24:18 +02:00
parent b4803e5e9b
commit edf9b09af1
4 changed files with 17 additions and 20 deletions

View File

@@ -9,7 +9,7 @@
defaults: {
// Define default properties
name: { value: "", required: true }, // use asset category as name
name: { value: "" }, // use asset category as name
// Define specific properties
scaling: { value: false },
@@ -36,6 +36,7 @@
//physicalAspect
positionVsParent: { value: "" },
positionIcon: { value: "" },
},
@@ -46,7 +47,7 @@
icon: "font-awesome/fa-tachometer",
label: function () {
return this.name || "Measurement";
return this.positionIcon + " " + this.assetType || "Measurement";
},
oneditprepare: function() {
@@ -118,6 +119,11 @@
success = window.EVOLV.nodes.measurement.loggerMenu.saveEditor(node);
}
// save position field
if (window.EVOLV?.nodes?.rotatingMachine?.positionMenu?.saveEditor) {
window.EVOLV.nodes.rotatingMachine.positionMenu.saveEditor(this);
}
// Save basic properties
["smooth_method"].forEach(
(field) => (node[field] = document.getElementById(`node-input-${field}`).value || "")