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

@@ -30,7 +30,7 @@
import IconCopy from "~icons/lucide/copy"
import IconCheck from "~icons/lucide/check"
import { refAutoReset } from "@vueuse/core"
import type { HoppRESTHeader } from "@hoppscotch/data"
import type { HoppRESTResponseHeader } from "~/helpers/types/HoppRESTResponse"
import { copyToClipboard } from "~/helpers/utils/clipboard"
import { useI18n } from "@composables/i18n"
import { useToast } from "@composables/toast"
@@ -40,7 +40,7 @@ const t = useI18n()
const toast = useToast()
defineProps<{
header: HoppRESTHeader
header: HoppRESTResponseHeader
}>()
const copyIcon = refAutoReset<typeof IconCopy | typeof IconCheck>(