GraphQL endpoint URL is now persisted
This commit is contained in:
@@ -136,7 +136,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: "https://rickandmortyapi.com/graphql",
|
|
||||||
schemaString: "",
|
schemaString: "",
|
||||||
queryFields: [],
|
queryFields: [],
|
||||||
mutationFields: [],
|
mutationFields: [],
|
||||||
@@ -144,6 +143,16 @@ export default {
|
|||||||
gqlTypes: []
|
gqlTypes: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
url: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.gql.url;
|
||||||
|
},
|
||||||
|
set(value) {
|
||||||
|
this.$store.commit("setGQLState", { value, attribute: "url" });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copySchema() {
|
copySchema() {
|
||||||
const aux = document.createElement("textarea");
|
const aux = document.createElement("textarea");
|
||||||
|
|||||||
Reference in New Issue
Block a user