diff --git a/packages/hoppscotch-common/src/components/embeds/index.vue b/packages/hoppscotch-common/src/components/embeds/index.vue
index 12bc0d9f4..ce7c8ebb6 100644
--- a/packages/hoppscotch-common/src/components/embeds/index.vue
+++ b/packages/hoppscotch-common/src/components/embeds/index.vue
@@ -7,7 +7,8 @@
-
+
+ {{ tab.document.request.method }}
+
-
+
@@ -106,7 +84,6 @@
import { Ref } from "vue"
import { computed, useModel } from "vue"
import { ref } from "vue"
-import { TippyComponent } from "vue-tippy"
import { useI18n } from "~/composables/i18n"
import { useToast } from "~/composables/toast"
import { getPlatformSpecialKey as getSpecialKey } from "~/helpers/platformutils"
@@ -116,7 +93,7 @@ import { HoppRESTResponse } from "~/helpers/types/HoppRESTResponse"
import { runRESTRequest$ } from "~/helpers/RequestRunner"
import { HoppTab } from "~/services/tab"
import { HoppRESTDocument } from "~/helpers/rest/document"
-
+import IconSave from "~icons/lucide/save"
const t = useI18n()
const toast = useToast()
@@ -139,30 +116,8 @@ const sharedRequestURL = computed(() => {
return `${baseURL}/r/${props.sharedRequestID}`
})
-const methods = [
- "GET",
- "POST",
- "PUT",
- "PATCH",
- "DELETE",
- "HEAD",
- "CONNECT",
- "OPTIONS",
- "TRACE",
- "CUSTOM",
-]
-
const { subscribeToStream } = useStreamSubscriber()
-const updateMethod = (method: string) => {
- tab.value.document.request.method = method
-}
-
-const onSelectMethod = (e: Event | any) => {
- // type any because of value property not being recognized by TS in the event.target object. It is a valid property though.
- updateMethod(e.target.value)
-}
-
const newSendRequest = async () => {
if (newEndpoint.value === "" || /^\s+$/.test(newEndpoint.value)) {
toast.error(`${t("empty.endpoint")}`)
@@ -254,11 +209,4 @@ const cancelRequest = () => {
updateRESTResponse(null)
}
-
-const isCustomMethod = computed(() => {
- return tab.value.document.request.method === "CUSTOM"
-})
-
-// Template refs
-const methodTippyActions = ref(null)