diff --git a/src/wuttaweb/templates/base.mako b/src/wuttaweb/templates/base.mako index dbad2e2..55b2aa8 100644 --- a/src/wuttaweb/templates/base.mako +++ b/src/wuttaweb/templates/base.mako @@ -526,16 +526,21 @@ }) }, - sendFeedback() { - this.sendingFeedback = true - - const params = { + getParams() { + return { referrer: this.referrer, user_uuid: this.userUUID, user_name: this.userName, message: this.message.trim(), + ...this.getExtraParams(), } + }, + getExtraParams() {}, + + sendFeedback() { + this.sendingFeedback = true + const params = this.getParams() this.wuttaPOST(this.action, params, response => { this.$buefy.toast.open({