Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nodenogg-duplicate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam Procter
nodenogg-duplicate
Commits
2c94686e
Commit
2c94686e
authored
4 years ago
by
Adam Procter
Browse files
Options
Downloads
Patches
Plain Diff
buttons fix !
missed that one :)
parent
7260c0fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/components/ConnectionsLayer.vue
+3
-5
3 additions, 5 deletions
app/src/components/ConnectionsLayer.vue
app/src/store/index.js
+8
-7
8 additions, 7 deletions
app/src/store/index.js
with
11 additions
and
12 deletions
app/src/components/ConnectionsLayer.vue
+
3
−
5
View file @
2c94686e
...
@@ -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_i
d
==
false
this
.
myNodes
[
i
].
delete
d
==
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
)
...
...
This diff is collapsed.
Click to expand it.
app/src/store/index.js
+
8
−
7
View file @
2c94686e
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment