fix: add tab id while opening tab (#4587)
This commit is contained in:
parent
5ad998f54a
commit
a332fd1f69
2 changed files with 3 additions and 17 deletions
|
|
@ -182,11 +182,7 @@ import { platform } from "~/platform"
|
||||||
import { useService } from "dioc/vue"
|
import { useService } from "dioc/vue"
|
||||||
import { GQLTabService } from "~/services/tab/graphql"
|
import { GQLTabService } from "~/services/tab/graphql"
|
||||||
import { computed } from "vue"
|
import { computed } from "vue"
|
||||||
import {
|
import { HoppCollection, HoppGQLRequest } from "@hoppscotch/data"
|
||||||
HoppCollection,
|
|
||||||
HoppGQLRequest,
|
|
||||||
makeGQLRequest,
|
|
||||||
} from "@hoppscotch/data"
|
|
||||||
import { Picked } from "~/helpers/types/HoppPicked"
|
import { Picked } from "~/helpers/types/HoppPicked"
|
||||||
import { HoppInheritedProperty } from "~/helpers/types/HoppInheritedProperties"
|
import { HoppInheritedProperty } from "~/helpers/types/HoppInheritedProperties"
|
||||||
import { updateInheritedPropertiesForAffectedRequests } from "~/helpers/collection/collection"
|
import { updateInheritedPropertiesForAffectedRequests } from "~/helpers/collection/collection"
|
||||||
|
|
@ -539,23 +535,13 @@ const selectRequest = ({
|
||||||
tabs.setActiveTab(possibleTab.value.id)
|
tabs.setActiveTab(possibleTab.value.id)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
tabs.createNewTab({
|
tabs.createNewTab({
|
||||||
saveContext: {
|
saveContext: {
|
||||||
originLocation: "user-collection",
|
originLocation: "user-collection",
|
||||||
folderPath: folderPath,
|
folderPath: folderPath,
|
||||||
requestIndex: requestIndex,
|
requestIndex: requestIndex,
|
||||||
},
|
},
|
||||||
request: cloneDeep(
|
request: cloneDeep(request),
|
||||||
makeGQLRequest({
|
|
||||||
name: request.name,
|
|
||||||
url: request.url,
|
|
||||||
query: request.query,
|
|
||||||
headers: request.headers,
|
|
||||||
variables: request.variables,
|
|
||||||
auth: request.auth,
|
|
||||||
})
|
|
||||||
),
|
|
||||||
isDirty: false,
|
isDirty: false,
|
||||||
inheritedProperties: {
|
inheritedProperties: {
|
||||||
auth,
|
auth,
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ import { useVModel } from "@vueuse/core"
|
||||||
import { useService } from "dioc/vue"
|
import { useService } from "dioc/vue"
|
||||||
import { pipe } from "fp-ts/lib/function"
|
import { pipe } from "fp-ts/lib/function"
|
||||||
import * as TE from "fp-ts/TaskEither"
|
import * as TE from "fp-ts/TaskEither"
|
||||||
import { computed, nextTick, onMounted, ref, watch } from "vue"
|
import { computed, nextTick, onMounted, ref } from "vue"
|
||||||
import { useReadonlyStream } from "~/composables/stream"
|
import { useReadonlyStream } from "~/composables/stream"
|
||||||
import { useColorMode } from "~/composables/theming"
|
import { useColorMode } from "~/composables/theming"
|
||||||
import { useToast } from "~/composables/toast"
|
import { useToast } from "~/composables/toast"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue