Added create collection and save request syncs

This commit is contained in:
Jacob Anavisca
2020-02-13 00:00:19 -05:00
parent bd3e1b7592
commit 8b989924a4
2 changed files with 23 additions and 0 deletions

View File

@@ -104,6 +104,8 @@
</template>
<script>
import { fb } from "../../functions/fb";
export default {
props: {
show: Boolean,
@@ -180,6 +182,15 @@ export default {
}
},
methods: {
syncCollections() {
if (fb.currentUser !== null) {
if (fb.currentSettings[0].value) {
fb.writeCollections(
JSON.parse(JSON.stringify(this.$store.state.postwoman.collections))
);
}
}
},
saveRequestAs() {
const userDidntSpecifyCollection =
this.$data.requestData.collectionIndex === undefined;