Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Added shortcut key to the Run Query button tooltip
Andrew Bastine5e66d8cc00d
diff --git a/pages/graphql.vue b/pages/graphql.vueindex ca8641da5..4d07a1022 100644--- a/pages/graphql.vue+++ b/pages/graphql.vue@@ -153,7 +153,10 @@<div class="flex-wrap gqlRunQuery"><label for="gqlQuery">{{ $t("query") }}</label><div>- <button @click="runQuery()" v-tooltip.bottom="$t('run_query')">+ <button+ @click="runQuery()"+ v-tooltip.bottom="`${$t('run_query')} (${getSpecialKey()}-Enter)`"+ ><i class="material-icons">play_arrow</i></button><button@@ -328,6 +331,7 @@ import textareaAutoHeight from "../directives/textareaAutoHeight"import { commonHeaders } from "../functions/headers"import AceEditor from "../components/ace-editor"import QueryEditor from "../components/graphql/queryeditor"+import { getPlatformSpecialKey } from "~/functions/platformutils"import { sendNetworkRequest } from "../functions/network"export default {@@ -425,6 +429,7 @@ export default {},},methods: {+ getSpecialKey: getPlatformSpecialKey,handleJumpToType(type) {const typesTab = document.getElementById("gqltypes-tab")typesTab.checked = true