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 {
for (j = 0; j < Object.keys(this.configPositions).length; j++) {
if (
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
// console.log(button_one.name)
......@@ -142,10 +142,8 @@ export default {
buttonMapOther[i] = new PIXI.Graphics()
// console.log(buttonMap[i])
for (j = 0; j < Object.keys(this.configPositions).length; j++) {
if (
this.configPositions[j].node_id == this.otherNodes[i].node_id &&
this.myNodes[i].node_id == false
) {
if (this.configPositions[j].node_id == this.otherNodes[i].node_id) {
console.log(this.otherNodes[i].deleted)
buttonMapOther[i].name = this.otherNodes[i].node_id
// console.log(button_one.name)
buttonMapOther[i].lineStyle(1)
......
......@@ -131,15 +131,16 @@ const store = new Vuex.Store({
j < Object.keys(state.allNodes[i].doc.nodes).length;
j++
) {
if (state.allNodes[i].doc.nodes[j].deleted != true) {
const newNode = {
node_id: state.allNodes[i].doc.nodes[j].node_id,
node_text: state.allNodes[i].doc.nodes[j].node_text,
}
state.otherNodes.push(newNode)
// if (state.allNodes[i].doc.nodes[j].deleted != true) {
const newNode = {
node_id: state.allNodes[i].doc.nodes[j].node_id,
node_text: state.allNodes[i].doc.nodes[j].node_text,
deleted: state.allNodes[i].doc.nodes[j].deleted,
}
state.otherNodes.push(newNode)
}
// }
}
}
//// console.log(state.otherNodes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment