updates
This commit is contained in:
@@ -52,13 +52,13 @@
|
||||
icon: "font-awesome/fa-toggle-on",
|
||||
|
||||
label: function () {
|
||||
return this.positionIcon + " " + this.category.slice(0, -1) || "Valve";
|
||||
return (this.positionIcon || "") + " " + (this.category ? this.category.slice(0, -1) : "Valve");
|
||||
},
|
||||
|
||||
oneditprepare: function() {
|
||||
const waitForMenuData = () => {
|
||||
if (window.EVOLV?.nodes?.measurement?.initEditor) {
|
||||
window.EVOLV.nodes.measurement.initEditor(this);
|
||||
if (window.EVOLV?.nodes?.valve?.initEditor) {
|
||||
window.EVOLV.nodes.valve.initEditor(this);
|
||||
} else {
|
||||
setTimeout(waitForMenuData, 50);
|
||||
}
|
||||
@@ -72,6 +72,7 @@
|
||||
},
|
||||
oneditsave: function () {
|
||||
const node = this;
|
||||
let success = true;
|
||||
|
||||
// Validate asset properties using the asset menu
|
||||
if (window.EVOLV?.nodes?.valve?.assetMenu?.saveEditor) {
|
||||
@@ -95,6 +96,8 @@
|
||||
node[field] = value;
|
||||
});
|
||||
|
||||
return success;
|
||||
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user