From 92719cf2b7f8e97f080214d389f33305055d78ce Mon Sep 17 00:00:00 2001 From: Adam Procter <adamprocter@researchnot.es> Date: Thu, 17 Dec 2020 17:48:26 +0000 Subject: [PATCH] bug fixes to load data --- CHANGELOG.md | 6 ++++-- app/src/components/ListLayer.vue | 2 +- app/src/components/NodesLayer.vue | 2 ++ app/src/components/OtherNodeslayer.vue | 9 +++++---- app/src/views/Collect.vue | 1 - 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef071c4..72027d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,10 @@ _17th December 2020_ ### Fixed -- You can now colour nodes in Collect and Card views -- initial node creation failed on new microcosm without switching views +- Some sync bug fixes. +- You can now colour nodes in Collect and Card views. +- initial node creation failed on new microcosm without switching views. +- Force load on Collect view. # 0.1.44 diff --git a/app/src/components/ListLayer.vue b/app/src/components/ListLayer.vue index 342d248..9a6e87f 100644 --- a/app/src/components/ListLayer.vue +++ b/app/src/components/ListLayer.vue @@ -120,7 +120,7 @@ export default { }, mounted() { - // setTimeout(this.loadData, 500) + setTimeout(this.loadData, 500) const unwatch = this.$watch('nodes_filtered', (value) => { this.$options.myArray = this.nodes_filtered diff --git a/app/src/components/NodesLayer.vue b/app/src/components/NodesLayer.vue index 4b3abc3..6896240 100644 --- a/app/src/components/NodesLayer.vue +++ b/app/src/components/NodesLayer.vue @@ -257,6 +257,8 @@ export default { // this is to stop sync chasing bug mounted() { + setTimeout(this.loadData, 500) + const unwatch = this.$watch('nodes_filtered', (value) => { this.$options.myArray = this.nodes_filtered // this.$options.positionsArray = this.positions_filtered diff --git a/app/src/components/OtherNodeslayer.vue b/app/src/components/OtherNodeslayer.vue index c82a622..89676ce 100644 --- a/app/src/components/OtherNodeslayer.vue +++ b/app/src/components/OtherNodeslayer.vue @@ -281,6 +281,7 @@ export default { mounted() { //access the custom option using $options + setTimeout(this.loadData, 500) const unwatch = this.$watch('othernodes_filtered', (value) => { this.$options.myArray = this.othernodes_filtered @@ -314,10 +315,10 @@ export default { }, methods: { - // loadData() { - // this.$options.positionsArray = this.positions_filtered - // this.$forceUpdate() - // }, + loadData() { + this.$options.positionsArray = this.positions_filtered + this.$forceUpdate() + }, onActivated(id, zindex) { this.zindex = zindex this.nodeid = id diff --git a/app/src/views/Collect.vue b/app/src/views/Collect.vue index b4cb550..08ba13c 100644 --- a/app/src/views/Collect.vue +++ b/app/src/views/Collect.vue @@ -116,7 +116,6 @@ export default { addNode() { this.$store.dispatch('addNode') this.added = !this.added - this.$forceUpdate() }, editTrue(e) { -- GitLab