Allow user feedback to request email reply back

This commit is contained in:
Lance Edgar 2022-08-17 21:08:54 -05:00
parent 5fb99c54c9
commit 2fde1db83c
4 changed files with 35 additions and 5 deletions

View file

@ -5,6 +5,12 @@ let FeedbackForm = {
mixins: [FormPosterMixin],
methods: {
pleaseReplyChanged(value) {
this.$nextTick(() => {
this.$refs.userEmail.focus()
})
},
showFeedback() {
this.showDialog = true
this.$nextTick(function() {
@ -18,6 +24,7 @@ let FeedbackForm = {
referrer: this.referrer,
user: this.userUUID,
user_name: this.userName,
please_reply_to: this.pleaseReply ? this.userEmail : null,
message: this.message.trim(),
}
@ -41,5 +48,7 @@ let FeedbackFormData = {
referrer: null,
userUUID: null,
userName: null,
pleaseReply: false,
userEmail: null,
showDialog: false,
}