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
5a33dcd2
Commit
5a33dcd2
authored
4 years ago
by
Adam Procter
Browse files
Options
Downloads
Patches
Plain Diff
looks like force update or force rerender dont play well with history mode
parent
d55a6356
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/.env
+1
-1
1 addition, 1 deletion
app/.env
app/src/components/ListLayer.vue
+12
-4
12 additions, 4 deletions
app/src/components/ListLayer.vue
with
13 additions
and
5 deletions
app/.env
+
1
−
1
View file @
5a33dcd2
VUE_APP_COUCH_HTTP=http
VUE_APP_COUCH_USER=auto-admin
VUE_APP_COUCH_PASS=testing@
VUE_APP_COUCH_URL=127.0.0.1:5984/
\ No newline at end of file
VUE_APP_COUCH_URL=192.168.1.179:5984/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/components/ListLayer.vue
+
12
−
4
View file @
5a33dcd2
<
template
>
<div>
<div
:key=
"componentKey"
>
<div
v-for=
"(nodes, index) in $options.myArray"
v-bind:key=
"index"
>
<form
class=
"nodes"
...
...
@@ -87,6 +87,7 @@ export default {
data
:
function
()
{
return
{
componentKey
:
0
,
color
:
'
#9bc2d8
'
,
shapes
:
'
circles
'
,
// swatches: [{ color: '#F493A7', showBorder: true }],
...
...
@@ -109,7 +110,7 @@ export default {
computed
:
{
...
mapState
({
myNodes
:
(
state
)
=>
state
.
myNodes
,
configPositions
:
(
state
)
=>
state
.
configPositions
,
//
configPositions: (state) => state.configPositions,
configEmoji
:
(
state
)
=>
state
.
configEmoji
,
// toolmode: (state) => state.ui.mode,
}),
...
...
@@ -126,7 +127,8 @@ export default {
const
unwatch
=
this
.
$watch
(
'
nodes_filtered
'
,
(
value
)
=>
{
this
.
$options
.
myArray
=
this
.
nodes_filtered
this
.
$forceUpdate
()
this
.
forceRerender
()
//this.$forceUpdate()
// this.focusInput()
// ignore falsy values
if
(
!
value
)
return
...
...
@@ -156,6 +158,10 @@ export default {
},
methods
:
{
forceRerender
(
child
)
{
console
.
log
(
child
)
this
.
componentKey
+=
1
},
chooseColor
(
color
,
nodeid
)
{
this
.
$store
.
dispatch
(
'
colorNode
'
,
{
nodeid
,
color
})
this
.
$options
.
myArray
=
this
.
nodes_filtered
...
...
@@ -164,8 +170,10 @@ export default {
this
.
update
=
!
this
.
update
},
loadData
()
{
console
.
log
(
'
called
'
)
this
.
$options
.
myArray
=
this
.
nodes_filtered
this
.
$forceUpdate
()
this
.
forceRerender
()
//this.$forceUpdate()
},
editNode
(
e
)
{
var
nodeid
=
e
.
target
.
id
...
...
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