set data-test attribute in forgot password page avoiding v-if

This commit is contained in:
mahula 2023-02-07 07:53:12 +01:00 committed by GitHub
parent d2665583b5
commit e1bf7b20f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,20 +24,11 @@
</b-container>
<b-container v-else>
<message
v-if="success"
:headline="$t('message.title')"
:subtitle="$t('message.email')"
:headline="success ? $t('message.title') : $t('message.errorTitle')"
:subtitle="success ? $t('message.email') : $t('error.email-already-sent')"
:data-test="success ? forgot-password-success : forgot-password-error"
:buttonText="$t('login')"
linkTo="/login"
data-test="forgot-password-success"
/>
<message
v-else
:headline="$t('message.errorTitle')"
:subtitle="$t('error.email-already-sent')"
:buttonText="$t('login')"
linkTo="/login"
data-test="forgot-password-error"
/>
</b-container>
</div>