Skip to content
Snippets Groups Projects
Commit 2c94686e authored by Adam Procter's avatar Adam Procter
Browse files

buttons fix !

missed that one :) 
parent 7260c0fd
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
for (j = 0; j < Object.keys(this.configPositions).length; j++) { for (j = 0; j < Object.keys(this.configPositions).length; j++) {
if ( if (
this.configPositions[j].node_id == this.myNodes[i].node_id && this.configPositions[j].node_id == this.myNodes[i].node_id &&
this.myNodes[i].node_id == false this.myNodes[i].deleted == false
) { ) {
buttonMap[i].name = this.myNodes[i].node_id buttonMap[i].name = this.myNodes[i].node_id
// console.log(button_one.name) // console.log(button_one.name)
...@@ -142,10 +142,8 @@ export default { ...@@ -142,10 +142,8 @@ export default {
buttonMapOther[i] = new PIXI.Graphics() buttonMapOther[i] = new PIXI.Graphics()
// console.log(buttonMap[i]) // console.log(buttonMap[i])
for (j = 0; j < Object.keys(this.configPositions).length; j++) { for (j = 0; j < Object.keys(this.configPositions).length; j++) {
if ( if (this.configPositions[j].node_id == this.otherNodes[i].node_id) {
this.configPositions[j].node_id == this.otherNodes[i].node_id && console.log(this.otherNodes[i].deleted)
this.myNodes[i].node_id == false
) {
buttonMapOther[i].name = this.otherNodes[i].node_id buttonMapOther[i].name = this.otherNodes[i].node_id
// console.log(button_one.name) // console.log(button_one.name)
buttonMapOther[i].lineStyle(1) buttonMapOther[i].lineStyle(1)
......
...@@ -131,15 +131,16 @@ const store = new Vuex.Store({ ...@@ -131,15 +131,16 @@ const store = new Vuex.Store({
j < Object.keys(state.allNodes[i].doc.nodes).length; j < Object.keys(state.allNodes[i].doc.nodes).length;
j++ j++
) { ) {
if (state.allNodes[i].doc.nodes[j].deleted != true) { // if (state.allNodes[i].doc.nodes[j].deleted != true) {
const newNode = { const newNode = {
node_id: state.allNodes[i].doc.nodes[j].node_id, node_id: state.allNodes[i].doc.nodes[j].node_id,
node_text: state.allNodes[i].doc.nodes[j].node_text, node_text: state.allNodes[i].doc.nodes[j].node_text,
} deleted: state.allNodes[i].doc.nodes[j].deleted,
state.otherNodes.push(newNode)
} }
state.otherNodes.push(newNode)
} }
// }
} }
} }
//// console.log(state.otherNodes) //// console.log(state.otherNodes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment