fix: bugs in shared request (#3704)

This commit is contained in:
Nivedin
2024-01-23 22:24:18 +05:30
committed by GitHub
parent b81ccb4ee3
commit 9e1466a877
11 changed files with 67 additions and 35 deletions

View File

@@ -70,7 +70,11 @@
v-model:option-tab="selectedOptionTab"
:properties="properties"
/>
<HttpResponse :document="tab.document" :is-embed="true" />
<HttpResponse
v-if="tab.document.response"
:document="tab.document"
:is-embed="true"
/>
</div>
</template>
@@ -88,18 +92,19 @@ import { runRESTRequest$ } from "~/helpers/RequestRunner"
import { HoppTab } from "~/services/tab"
import { HoppRESTDocument } from "~/helpers/rest/document"
import IconSave from "~icons/lucide/save"
import { RESTOptionTabs } from "../http/RequestOptions.vue"
const t = useI18n()
const toast = useToast()
const props = defineProps<{
modelTab: HoppTab<HoppRESTDocument>
properties: string[]
properties: RESTOptionTabs[]
sharedRequestID: string
}>()
const tab = useModel(props, "modelTab")
const selectedOptionTab = ref(props.properties[0])
const selectedOptionTab = ref<RESTOptionTabs>(props.properties[0])
const requestCancelFunc: Ref<(() => void) | null> = ref(null)