Skip to content

Commit

Permalink
Merge pull request #282 from appwrite/feat/feedback-alert
Browse files Browse the repository at this point in the history
Feat: add success alert on feedback
  • Loading branch information
TorstenDittmann authored Feb 10, 2023
2 parents aeb4cbd + 3b559d9 commit fa5dff3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/components/feedbackGeneral.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@
async function handleSubmit() {
try {
await feedback.submitFeedback('feedback-general', message, name, email);
show = false;
addNotification({
type: 'success',
message: 'Feedback submitted successfully'
});
} catch (error) {
show = false;
addNotification({
type: 'error',
message: error.message
});
} finally {
show = false;
}
}
</script>
Expand Down

1 comment on commit fa5dff3

@vercel
Copy link

@vercel vercel bot commented on fa5dff3 Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.