🐛 Fixed issues with sync, squashed a bug introduced in last transpile

This commit is contained in:
Liyas Thomas
2020-06-15 15:03:31 +05:30
parent 5249e4730d
commit 5cdc30b822
8 changed files with 61 additions and 14 deletions

View File

@@ -64,6 +64,14 @@ export default {
collectionIndex: this.$props.collectionIndex,
})
this.hideModal()
this.syncCollections()
},
syncCollections() {
if (fb.currentUser !== null) {
if (fb.currentSettings[0].value) {
fb.writeCollections(JSON.parse(JSON.stringify(this.$store.state.postwoman.collections)))
}
}
},
hideModal() {
this.$emit("hide-modal")