forked from RnD/measurement
Generic updates completed for now
This commit is contained in:
@@ -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 || "")
|
||||
|
||||
Reference in New Issue
Block a user