hotfix: graphql connection error handler (#4523)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Anwarul Islam
2024-11-12 21:45:48 +06:00
committed by GitHub
parent 3de3209d5e
commit e1fbe68796
4 changed files with 55 additions and 15 deletions

View File

@@ -87,7 +87,8 @@
import { usePageHead } from "@composables/head"
import { useI18n } from "@composables/i18n"
import { useService } from "dioc/vue"
import { computed, onBeforeUnmount, ref } from "vue"
import { computed, onBeforeUnmount, ref, watch } from "vue"
import { useToast } from "~/composables/toast"
import { defineActionHandler } from "~/helpers/actions"
import { connection, disconnect } from "~/helpers/graphql/connection"
import { getDefaultGQLRequest } from "~/helpers/graphql/default"
@@ -97,6 +98,7 @@ import { HoppTab } from "~/services/tab"
import { GQLTabService } from "~/services/tab/graphql"
const t = useI18n()
const toast = useToast()
const tabs = useService(GQLTabService)
const currentTabID = computed(() => tabs.currentTabID.value)