Removed old variable store mechanisms

This commit is contained in:
Andrew Bastin
2020-01-29 20:05:59 -05:00
parent d35d3061e5
commit cf9fe0c02c

View File

@@ -519,14 +519,6 @@ export default {
this.$store.commit("setGQLState", { value, attribute: "headers" }); 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: { gqlQueryString: {
get() { get() {
return this.$store.state.gql.query; return this.$store.state.gql.query;
@@ -827,30 +819,6 @@ export default {
}); });
// console.log(oldHeaders); // 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) { scrollInto(view) {
this.$refs[view].$el.scrollIntoView({ this.$refs[view].$el.scrollIntoView({
behavior: "smooth" behavior: "smooth"