feat: active tab no longer resets after request (#2917)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Closes https://github.com/hoppscotch/hoppscotch/issues/2080
This commit is contained in:
Jesvin Jose
2023-02-08 10:29:18 +05:30
committed by GitHub
parent ce0898956d
commit a227af05d9
6 changed files with 93 additions and 74 deletions

View File

@@ -27,18 +27,18 @@
<script setup lang="ts">
import IconCopy from "~icons/lucide/copy"
import IconCheck from "~icons/lucide/check"
import { HoppRESTHeader } from "@hoppscotch/data"
import { refAutoReset } from "@vueuse/core"
import { copyToClipboard } from "~/helpers/utils/clipboard"
import { useI18n } from "@composables/i18n"
import { useToast } from "@composables/toast"
import type { HoppRESTResponseHeader } from "~/helpers/types/HoppRESTResponse"
const t = useI18n()
const toast = useToast()
const props = defineProps<{
headers: Array<HoppRESTHeader>
headers: HoppRESTResponseHeader[]
}>()
const copyIcon = refAutoReset<typeof IconCopy | typeof IconCheck>(