Added History sync

This commit is contained in:
Liyas Thomas
2020-01-23 19:07:36 +05:30
parent ab336de732
commit 65e9e7a73b
7 changed files with 91 additions and 25 deletions

View File

@@ -2129,6 +2129,11 @@ export default {
star: false
};
this.$refs.historyComponent.addEntry(entry);
if (fb.currentUser !== null) {
if (fb.currentSettings[1].value) {
fb.writeHistory(entry);
}
}
})();
} catch (error) {
console.error(error);
@@ -2150,6 +2155,11 @@ export default {
preRequestScript: this.preRequestScript
};
this.$refs.historyComponent.addEntry(entry);
if (fb.currentUser !== null) {
if (fb.currentSettings[1].value) {
fb.writeHistory(entry);
}
}
return;
} else {
this.response.status = error.message;

View File

@@ -379,6 +379,7 @@ export default {
this.$store.commit("postwoman/applySetting", [key, this.settings[key]]);
},
logout() {
fb.currentUser = null;
firebase
.auth()
.signOut()