Skip to content

Commit

Permalink
fix: exclude request-specific spotlight actions on response examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Oct 10, 2024
1 parent a6657f0 commit ab82ad4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab82ad4

Please sign in to comment.