Skip to content

Commit

Permalink
feat(ui): hide feedback when error occurs
Browse files Browse the repository at this point in the history
closes: #99
  • Loading branch information
Lee-W committed Nov 9, 2023
1 parent d01663d commit d1ea50f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/lib/components/custom/MessageCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
{/if}
</div>

{#if showFeedback && requestUuid && hasReacted !== undefined}
{#if showFeedback && requestUuid && hasReacted !== undefined && additional_kwargs.status != 'error'}
<Card.Footer>
{#if hasReacted === false}
<div class="flex gap-2 items-center w-full mt-4">
Expand Down
1 change: 1 addition & 0 deletions ui/src/routes/requests/[request_id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
requestUuid={$page.params.request_id}
additional_kwargs={{
ts: $page.data.response_received_at,
status: $page.data.status,
}}
showFeedback
/>
Expand Down

0 comments on commit d1ea50f

Please sign in to comment.