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
chore: remove reference to `ReqType` enum
jamesgeorge007f091c1bdc5b9
diff --git a/packages/hoppscotch-common/src/components/collections/SaveRequest.vue b/packages/hoppscotch-common/src/components/collections/SaveRequest.vueindex fdb40c3c1..54d1a93b5 100644--- a/packages/hoppscotch-common/src/components/collections/SaveRequest.vue+++ b/packages/hoppscotch-common/src/components/collections/SaveRequest.vue@@ -135,7 +135,6 @@ import {useSubmitFeedback,} from "~/composables/ai-experiments"import { GQLError } from "~/helpers/backend/GQLClient"-import { ReqType } from "~/helpers/backend/graphql"import {createRequestInCollection,updateTeamRequest,@@ -549,7 +548,7 @@ const saveRequestAs = async () => {headers,}- requestSaved(ReqType.Gql)+ requestSaved("GQL")} else if (picked.value.pickedType === "gql-my-folder") {// TODO: Check for GQL request ?const insertionIndex = saveGraphqlRequestAs(@@ -584,7 +583,7 @@ const saveRequestAs = async () => {headers,}- requestSaved(ReqType.Gql)+ requestSaved("GQL")} else if (picked.value.pickedType === "gql-my-collection") {// TODO: Check for GQL request ?const insertionIndex = saveGraphqlRequestAs(@@ -619,7 +618,7 @@ const saveRequestAs = async () => {headers,}- requestSaved(ReqType.Gql)+ requestSaved("GQL")}}@@ -674,10 +673,10 @@ const updateTeamCollectionOrFolder = ()()}-const requestSaved = (tab: ReqType = ReqType.Rest) => {+const requestSaved = (tab: "REST" | "GQL" = "REST") => {toast.success(`${t("request.added")}`)nextTick(() => {- if (tab === ReqType.Rest) {+ if (tab === "REST") {RESTTabs.currentActiveTab.value.document.isDirty = false} else {GQLTabs.currentActiveTab.value.document.isDirty = false