fix: Copy and download filtered response body (#2426)

This commit is contained in:
Nivedin
2022-06-16 06:09:43 +05:30
committed by GitHub
parent 51138fa42d
commit 185dc3f2c9

View File

@@ -218,13 +218,6 @@ const props = defineProps<{
const { responseBodyText } = useResponseBody(props.response)
const { copyIcon, copyResponse } = useCopyResponse(responseBodyText)
const { downloadIcon, downloadResponse } = useDownloadResponse(
"application/json",
responseBodyText
)
const toggleFilter = ref(false)
const filterQueryText = ref("")
@@ -310,6 +303,12 @@ const filterResponseError = computed(() =>
)
)
const { copyIcon, copyResponse } = useCopyResponse(jsonBodyText)
const { downloadIcon, downloadResponse } = useDownloadResponse(
"application/json",
jsonBodyText
)
const outlineOptions = ref<any | null>(null)
const jsonResponse = ref<any | null>(null)
const linewrapEnabled = ref(true)