Added prettify query button for GraphQL queries
This commit is contained in:
parent
30ee570ef7
commit
e4abe4efd5
1 changed files with 10 additions and 0 deletions
|
|
@ -178,6 +178,13 @@
|
|||
>
|
||||
<i class="material-icons">file_copy</i>
|
||||
</button>
|
||||
<button
|
||||
class="icon"
|
||||
@click="doPrettifyQuery"
|
||||
v-tooltip="`${$t('prettify_query')} (${getSpecialKey()}-P)`"
|
||||
>
|
||||
<i class="material-icons">photo_filter</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<QueryEditor
|
||||
|
|
@ -452,6 +459,9 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getSpecialKey: getPlatformSpecialKey,
|
||||
doPrettifyQuery() {
|
||||
this.$refs.queryEditor.prettifyQuery()
|
||||
},
|
||||
handleJumpToType(type) {
|
||||
const typesTab = document.getElementById("gqltypes-tab")
|
||||
typesTab.checked = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue