Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: show loading spinner while submitting prompt generation feedback

jamesgeorge007ebb7eeade4c9
diff --git a/packages/hoppscotch-common/src/components/collections/AddRequest.vue b/packages/hoppscotch-common/src/components/collections/AddRequest.vue
index 1f8df8824..d3066b744 100644
--- a/packages/hoppscotch-common/src/components/collections/AddRequest.vue
+++ b/packages/hoppscotch-common/src/components/collections/AddRequest.vue
@@ -73,9 +73,9 @@
:icon="IconThumbsDown"
outline
@click="
- () => {
+ async () => {
if (lastTraceID) {
- submitFeedback('negative', lastTraceID)
+ await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}
diff --git a/packages/hoppscotch-common/src/components/collections/EditRequest.vue b/packages/hoppscotch-common/src/components/collections/EditRequest.vue
index 6f9a7c48a..0bd1f0223 100644
--- a/packages/hoppscotch-common/src/components/collections/EditRequest.vue
+++ b/packages/hoppscotch-common/src/components/collections/EditRequest.vue
@@ -73,9 +73,9 @@
:icon="IconThumbsDown"
outline
@click="
- () => {
+ async () => {
if (lastTraceID) {
- submitFeedback('negative', lastTraceID)
+ await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}
diff --git a/packages/hoppscotch-common/src/components/collections/SaveRequest.vue b/packages/hoppscotch-common/src/components/collections/SaveRequest.vue
index 21b67ae4f..a597cd956 100644
--- a/packages/hoppscotch-common/src/components/collections/SaveRequest.vue
+++ b/packages/hoppscotch-common/src/components/collections/SaveRequest.vue
@@ -95,9 +95,9 @@
:icon="IconThumbsDown"
outline
@click="
- () => {
+ async () => {
if (lastTraceID) {
- submitFeedback('negative', lastTraceID)
+ await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}
diff --git a/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue b/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue
index dc5e52e78..e51449cb0 100644
--- a/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue
+++ b/packages/hoppscotch-common/src/components/collections/graphql/AddRequest.vue
@@ -72,9 +72,9 @@
:icon="IconThumbsDown"
outline
@click="
- () => {
+ async () => {
if (lastTraceID) {
- submitFeedback('negative', lastTraceID)
+ await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}
diff --git a/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue b/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue
index 01a07ea41..f7345f3b6 100644
--- a/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue
+++ b/packages/hoppscotch-common/src/components/collections/graphql/EditRequest.vue
@@ -72,9 +72,9 @@
:icon="IconThumbsDown"
outline
@click="
- () => {
+ async () => {
if (lastTraceID) {
- submitFeedback('negative', lastTraceID)
+ await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}