Skip to content
Snippets Groups Projects
Commit 3e1595e3 authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Fixed detail change for nodes and added history points

parent 83059cce
Branches
Tags
No related merge requests found
......@@ -168,7 +168,7 @@ export class Graph extends ManagedData {
changeDetails(selectionDetails) {
if (selectionDetails.node === true) {
this.changeNodeDetails(selectionDetails[NODE_ID].newDetails);
this.changeNodeDetails(selectionDetails[NODE_ID], selectionDetails);
} else if (selectionDetails.link === true) {
this.changeLinkDetails(
selectionDetails[LINK_SOURCE][NODE_ID],
......@@ -186,10 +186,11 @@ export class Graph extends ManagedData {
continue; // No
}
// Changed details
// Change details
nodes[i] = Object.assign(nodes[i], newDetails);
// All done
this.storeCurrentData("Changed node details");
return;
}
}
......@@ -205,10 +206,11 @@ export class Graph extends ManagedData {
continue; // No
}
// Changed details
// Change details
links[i] = Object.assign(links[i], newDetails);
// All done
this.storeCurrentData("Changed link details");
return;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment