mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Remove code from Message component, because it's not needed anymore as on thx page
This commit is contained in:
parent
7f0d322064
commit
8052fea91a
@ -23,14 +23,13 @@ export default {
|
|||||||
subtitle: { type: String, required: true },
|
subtitle: { type: String, required: true },
|
||||||
buttonText: { type: String, required: false, default: null },
|
buttonText: { type: String, required: false, default: null },
|
||||||
linkTo: { 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: {
|
computed: {
|
||||||
showButton() {
|
showButton() {
|
||||||
return this.buttonText && this.linkTo
|
return this.buttonText && this.linkTo
|
||||||
},
|
},
|
||||||
buttonLinkTo() {
|
buttonLinkTo() {
|
||||||
return this.linkTo ? this.linkTo + (this.code ? `/${this.code}` : '') : null
|
return this.linkTo ? this.linkTo : null
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,7 +92,6 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
let errorMessage
|
let errorMessage
|
||||||
// Wolle: how to solve this with error codes?
|
|
||||||
if (
|
if (
|
||||||
error.message.match(
|
error.message.match(
|
||||||
/email was sent more than ([0-9]+ hours)?( and )?([0-9]+ minutes)? ago/,
|
/email was sent more than ([0-9]+ hours)?( and )?([0-9]+ minutes)? ago/,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user