From a3195267c995294bc0075b99413b0e736ddd2c2c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 1 Mar 2022 19:51:30 -0600 Subject: [PATCH] Show toast msg instead of alert after sending feedback --- tailbone/static/themes/falafel/js/tailbone.feedback.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tailbone/static/themes/falafel/js/tailbone.feedback.js b/tailbone/static/themes/falafel/js/tailbone.feedback.js index e83b59ed..11745ab4 100644 --- a/tailbone/static/themes/falafel/js/tailbone.feedback.js +++ b/tailbone/static/themes/falafel/js/tailbone.feedback.js @@ -22,7 +22,13 @@ let FeedbackForm = { } this.submitForm(this.action, params, response => { - alert("Message successfully sent.\n\nThank you for your feedback.") + + this.$buefy.toast.open({ + message: "Message sent! Thank you for your feedback.", + type: 'is-info', + duration: 4000, // 4 seconds + }) + this.showDialog = false // clear out message, in case they need to send another this.message = ""