Remove code from Message component, because it's not needed anymore as on thx page

This commit is contained in:
Wolfgang Huß 2022-05-25 13:41:15 +02:00
parent 7f0d322064
commit 8052fea91a
2 changed files with 1 additions and 3 deletions

View File

@ -23,14 +23,13 @@ export default {
subtitle: { type: String, required: true },
buttonText: { type: String, required: false, default: null },
linkTo: { type: String, required: false, default: null },
code: { type: String, required: false, default: null }, // Wolle: to be removed by adding it directly to the "linkTo"
},
computed: {
showButton() {
return this.buttonText && this.linkTo
},
buttonLinkTo() {
return this.linkTo ? this.linkTo + (this.code ? `/${this.code}` : '') : null
return this.linkTo ? this.linkTo : null
},
},
}

View File

@ -92,7 +92,6 @@ export default {
})
.catch((error) => {
let errorMessage
// Wolle: how to solve this with error codes?
if (
error.message.match(
/email was sent more than ([0-9]+ hours)?( and )?([0-9]+ minutes)? ago/,