fix: add full request as request context (#4422)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
@@ -278,7 +278,10 @@ const getTabName = (tab: HoppTab<HoppTabDocument>) => {
|
|||||||
const requestToRename = computed(() => {
|
const requestToRename = computed(() => {
|
||||||
if (!renameTabID.value) return null
|
if (!renameTabID.value) return null
|
||||||
const tab = tabs.getTabRef(renameTabID.value)
|
const tab = tabs.getTabRef(renameTabID.value)
|
||||||
return getTabName(tab.value)
|
|
||||||
|
return tab.value.document.type === "request"
|
||||||
|
? tab.value.document.request
|
||||||
|
: null
|
||||||
})
|
})
|
||||||
|
|
||||||
const openReqRenameModal = (tabID?: string) => {
|
const openReqRenameModal = (tabID?: string) => {
|
||||||
|
|||||||
@@ -47,7 +47,11 @@ export class RequestSpotlightSearcherService extends StaticSpotlightSearcherServ
|
|||||||
private readonly restTab = this.bind(RESTTabService)
|
private readonly restTab = this.bind(RESTTabService)
|
||||||
|
|
||||||
private route = useRoute()
|
private route = useRoute()
|
||||||
private isRESTPage = computed(() => this.route.name === "index")
|
private isRESTPage = computed(
|
||||||
|
() =>
|
||||||
|
this.route.name === "index" &&
|
||||||
|
this.restTab.currentActiveTab.value.document.type === "request"
|
||||||
|
)
|
||||||
private isGQLPage = computed(() => this.route.name === "graphql")
|
private isGQLPage = computed(() => this.route.name === "graphql")
|
||||||
private isRESTOrGQLPage = computed(
|
private isRESTOrGQLPage = computed(
|
||||||
() => this.isRESTPage.value || this.isGQLPage.value
|
() => this.isRESTPage.value || this.isGQLPage.value
|
||||||
|
|||||||
Reference in New Issue
Block a user