fix: show loading spinner while submitting prompt generation feedback

This commit is contained in:
jamesgeorge007
2024-10-01 16:58:33 +05:30
parent c90aaec65d
commit ebb7eeade4
5 changed files with 10 additions and 10 deletions

View File

@@ -73,9 +73,9 @@
:icon="IconThumbsDown"
outline
@click="
() => {
async () => {
if (lastTraceID) {
submitFeedback('negative', lastTraceID)
await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}

View File

@@ -73,9 +73,9 @@
:icon="IconThumbsDown"
outline
@click="
() => {
async () => {
if (lastTraceID) {
submitFeedback('negative', lastTraceID)
await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}

View File

@@ -95,9 +95,9 @@
:icon="IconThumbsDown"
outline
@click="
() => {
async () => {
if (lastTraceID) {
submitFeedback('negative', lastTraceID)
await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}

View File

@@ -72,9 +72,9 @@
:icon="IconThumbsDown"
outline
@click="
() => {
async () => {
if (lastTraceID) {
submitFeedback('negative', lastTraceID)
await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}

View File

@@ -72,9 +72,9 @@
:icon="IconThumbsDown"
outline
@click="
() => {
async () => {
if (lastTraceID) {
submitFeedback('negative', lastTraceID)
await submitFeedback('negative', lastTraceID)
submittedFeedback = true
}
}