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

bug fixes to load data

parent 3f9b0fce
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,10 @@ _17th December 2020_ ...@@ -8,8 +8,10 @@ _17th December 2020_
### Fixed ### Fixed
- You can now colour nodes in Collect and Card views - Some sync bug fixes.
- initial node creation failed on new microcosm without switching views - 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 # 0.1.44
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
}, },
mounted() { mounted() {
// setTimeout(this.loadData, 500) setTimeout(this.loadData, 500)
const unwatch = this.$watch('nodes_filtered', (value) => { const unwatch = this.$watch('nodes_filtered', (value) => {
this.$options.myArray = this.nodes_filtered this.$options.myArray = this.nodes_filtered
......
...@@ -257,6 +257,8 @@ export default { ...@@ -257,6 +257,8 @@ export default {
// this is to stop sync chasing bug // this is to stop sync chasing bug
mounted() { mounted() {
setTimeout(this.loadData, 500)
const unwatch = this.$watch('nodes_filtered', (value) => { const unwatch = this.$watch('nodes_filtered', (value) => {
this.$options.myArray = this.nodes_filtered this.$options.myArray = this.nodes_filtered
// this.$options.positionsArray = this.positions_filtered // this.$options.positionsArray = this.positions_filtered
......
...@@ -281,6 +281,7 @@ export default { ...@@ -281,6 +281,7 @@ export default {
mounted() { mounted() {
//access the custom option using $options //access the custom option using $options
setTimeout(this.loadData, 500)
const unwatch = this.$watch('othernodes_filtered', (value) => { const unwatch = this.$watch('othernodes_filtered', (value) => {
this.$options.myArray = this.othernodes_filtered this.$options.myArray = this.othernodes_filtered
...@@ -314,10 +315,10 @@ export default { ...@@ -314,10 +315,10 @@ export default {
}, },
methods: { methods: {
// loadData() { loadData() {
// this.$options.positionsArray = this.positions_filtered this.$options.positionsArray = this.positions_filtered
// this.$forceUpdate() this.$forceUpdate()
// }, },
onActivated(id, zindex) { onActivated(id, zindex) {
this.zindex = zindex this.zindex = zindex
this.nodeid = id this.nodeid = id
......
...@@ -116,7 +116,6 @@ export default { ...@@ -116,7 +116,6 @@ export default {
addNode() { addNode() {
this.$store.dispatch('addNode') this.$store.dispatch('addNode')
this.added = !this.added this.added = !this.added
this.$forceUpdate()
}, },
editTrue(e) { editTrue(e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment