🐛 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

@@ -168,10 +168,18 @@ export default {
this.$store.commit("postwoman/replaceEnvironments", fb.currentEnvironments)
this.fileImported()
},
syncToFBEnvironments() {
if (fb.currentUser !== null) {
if (fb.currentSettings[1].value) {
fb.writeEnvironments(JSON.parse(JSON.stringify(this.$store.state.postwoman.environments)))
}
}
},
fileImported() {
this.$toast.info(this.$t("file_imported"), {
icon: "folder_shared",
})
this.syncToFBEnvironments()
},
},
}