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
Removed old variable store mechanisms
Andrew Bastincf9fe0c02c9d
diff --git a/pages/graphql.vue b/pages/graphql.vueindex 360bc0183..ab04eb41b 100644--- a/pages/graphql.vue+++ b/pages/graphql.vue@@ -519,14 +519,6 @@ export default {this.$store.commit("setGQLState", { value, attribute: "headers" });}},- variables: {- get() {- return this.$store.state.gql.variables;- },- set(value) {- this.$store.commit("setGQLState", { value, attribute: "variables" });- }- },gqlQueryString: {get() {return this.$store.state.gql.query;@@ -827,30 +819,6 @@ export default {});// console.log(oldHeaders);},- addQueryVariable(index) {- this.$store.commit("addGQLVariable", {- key: "",- value: ""- });- return false;- },- removeQueryVariable(index) {- const oldVariables = this.variables.slice();-- this.$store.commit("removeGQLVariable", index);- this.$toast.error(this.$t("deleted"), {- icon: "delete",- action: {- text: this.$t("undo"),- duration: 4000,- onClick: (e, toastObject) => {- this.variables = oldVariables;- toastObject.remove();- }- }- });- // console.log(oldVariables);- },scrollInto(view) {this.$refs[view].$el.scrollIntoView({behavior: "smooth"