mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-21 14:38:47 +00:00
fix: add full request as request context (#4422)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
parent
bb21b13471
commit
79bf0d0363
@ -278,7 +278,10 @@ const getTabName = (tab: HoppTab<HoppTabDocument>) => {
|
||||
const requestToRename = computed(() => {
|
||||
if (!renameTabID.value) return null
|
||||
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) => {
|
||||
|
@ -47,7 +47,11 @@ export class RequestSpotlightSearcherService extends StaticSpotlightSearcherServ
|
||||
private readonly restTab = this.bind(RESTTabService)
|
||||
|
||||
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 isRESTOrGQLPage = computed(
|
||||
() => this.isRESTPage.value || this.isGQLPage.value
|
||||
|
Loading…
Reference in New Issue
Block a user