Added basic string replacement when a node changes name

This commit is contained in:
frikky
2022-05-21 16:57:23 +02:00
parent 7e42553fee
commit a10007c832
3 changed files with 80 additions and 18 deletions
+2 -5
View File
@@ -1839,15 +1839,13 @@ const AngularWorkflow = (defaultprops) => {
// Wait for new node to possibly be selected
//setTimeout(() => {
const typeIds = cy.elements('node:selected').jsons();
console.log("Found: ", typeIds)
for (var idkey in typeIds) {
const item = typeIds[idkey]
console.log("items: ", item)
if (item.data.isButton === true) {
console.log("Reselect old node & return - or just return?")
//console.log("Reselect old node & return - or just return?")
if (item.data.buttonType === "delete" && item.data.attachedTo === nodedata.id) {
console.log("delete of same node!")
//console.log("delete of same node!")
}
return
}
@@ -3699,7 +3697,6 @@ const AngularWorkflow = (defaultprops) => {
for (var idkey in typeIds) {
const item = typeIds[idkey]
if (item.data.id === nodedata.id) {
console.log("items: ", item.data.id, nodedata.id)
return
}
}