From cf9fe0c02c9d05c8b0e8b6b9ded1fc314f09f996 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Wed, 29 Jan 2020 20:05:59 -0500 Subject: [PATCH] Removed old variable store mechanisms --- pages/graphql.vue | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index 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"