fix: allow custom base template to add params to feedback form
This commit is contained in:
parent
0910153685
commit
33bd36b70f
|
@ -526,16 +526,21 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
sendFeedback() {
|
getParams() {
|
||||||
this.sendingFeedback = true
|
return {
|
||||||
|
|
||||||
const params = {
|
|
||||||
referrer: this.referrer,
|
referrer: this.referrer,
|
||||||
user_uuid: this.userUUID,
|
user_uuid: this.userUUID,
|
||||||
user_name: this.userName,
|
user_name: this.userName,
|
||||||
message: this.message.trim(),
|
message: this.message.trim(),
|
||||||
|
...this.getExtraParams(),
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
getExtraParams() {},
|
||||||
|
|
||||||
|
sendFeedback() {
|
||||||
|
this.sendingFeedback = true
|
||||||
|
const params = this.getParams()
|
||||||
this.wuttaPOST(this.action, params, response => {
|
this.wuttaPOST(this.action, params, response => {
|
||||||
|
|
||||||
this.$buefy.toast.open({
|
this.$buefy.toast.open({
|
||||||
|
|
Loading…
Reference in a new issue