refactor: better implimentation for slots
This commit is contained in:
@@ -530,6 +530,9 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
selectedRequest() {
|
||||
return this.$store.state.postwoman.selectedGraphqlRequest
|
||||
},
|
||||
filteredQueryFields() {
|
||||
return this.getFilteredGraphqlFields({
|
||||
filterText: this.graphqlFieldsFilterText,
|
||||
@@ -606,6 +609,15 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
selectedRequest(newValue) {
|
||||
if (!newValue) return
|
||||
this.url = newValue.url
|
||||
this.gqlQueryString = newValue.query
|
||||
this.headers = newValue.headers
|
||||
this.variableString = newValue.variables
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
if (
|
||||
this.$store.state.gql.schemaIntrospection &&
|
||||
|
||||
Reference in New Issue
Block a user