Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Added create collection and save request syncs
Jacob Anavisca8b989924a4d8
diff --git a/components/collections/addCollection.vue b/components/collections/addCollection.vueindex 9b173839b..fd9202ab2 100644--- a/components/collections/addCollection.vue+++ b/components/collections/addCollection.vue@@ -43,6 +43,8 @@</template><script>+import { fb } from "../../functions/fb";+export default {props: {show: Boolean@@ -56,6 +58,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))+ );+ }+ }+ },addNewCollection() {if (!this.$data.name) {this.$toast.info($t("invalid_collection_name"));@@ -65,6 +76,7 @@ export default {name: this.$data.name});this.$emit("hide-modal");+ this.syncCollections();},hideModal() {this.$emit("hide-modal");diff --git a/components/collections/saveRequestAs.vue b/components/collections/saveRequestAs.vueindex 6cf3d6491..014034998 100644--- a/components/collections/saveRequestAs.vue+++ b/components/collections/saveRequestAs.vue@@ -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;