fix: tab system breaks when a new tab is created while waiting for response in another tab (#3031)

This commit is contained in:
Anwarul Islam
2023-05-10 19:46:28 +06:00
committed by Andrew Bastin
parent b7c2d13992
commit 3f35fedd9d
3 changed files with 10 additions and 46 deletions

View File

@@ -10,8 +10,7 @@
</template>
<script setup lang="ts">
import { computed, ref, watch } from "vue"
import { startPageProgress, completePageProgress } from "@modules/loadingbar"
import { computed, ref } from "vue"
import { HoppRESTTab } from "~/helpers/rest/tab"
import { useVModel } from "@vueuse/core"
@@ -34,9 +33,4 @@ const hasResponse = computed(
)
const loading = computed(() => tab.value.response?.type === "loading")
watch(loading, (isLoading) => {
if (isLoading) startPageProgress()
else completePageProgress()
})
</script>