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

Merge branch 'futurenogg' into main

parents 1fb54fb5 cfa31622
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
added: { added: {
deep: true, deep: true,
handler() { handler() {
console.log('add happened')
setTimeout(this.loadData, 500) setTimeout(this.loadData, 500)
}, },
}, },
...@@ -77,7 +78,9 @@ export default { ...@@ -77,7 +78,9 @@ export default {
methods: { methods: {
loadData() { loadData() {
console.log('loading data')
this.myArray = this.nodesFiltered this.myArray = this.nodesFiltered
console.log(this.myArray)
this.$forceUpdate() this.$forceUpdate()
}, },
......
...@@ -131,6 +131,7 @@ export const actions = { ...@@ -131,6 +131,7 @@ export const actions = {
}, },
getNodes: ({ commit }, e) => { getNodes: ({ commit }, e) => {
console.log('getting nodes as you added one')
commit('GET_NODES', e) commit('GET_NODES', e)
}, },
......
...@@ -73,7 +73,7 @@ export const actions = { ...@@ -73,7 +73,7 @@ export const actions = {
// pouchdb = new PouchDB(lastmicrocosm) // pouchdb = new PouchDB(lastmicrocosm)
// } // }
pouchdb.replicate.from(remote).on('complete', function () { pouchdb.replicate.from(remote).on('complete', function () {
// GET_MYNODES from mynodes.js ACTION // GET_MYNODES from myNodes.js ACTION
vuexContext.dispatch('getNodes', null, { root: true }) vuexContext.dispatch('getNodes', null, { root: true })
pouchdb pouchdb
.sync(state.remoteAddress, { .sync(state.remoteAddress, {
...@@ -82,6 +82,7 @@ export const actions = { ...@@ -82,6 +82,7 @@ export const actions = {
retry: true, retry: true,
}) })
.on('change', function () { .on('change', function () {
console.log('change happened')
vuexContext.dispatch('getNodes', null, { root: true }) vuexContext.dispatch('getNodes', null, { root: true })
}) })
.on('paused', function () {}) .on('paused', function () {})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment