Add support instructions

This commit is contained in:
Robert Schäfer 2019-06-18 22:35:44 +02:00
parent 7446464d6c
commit 506fe0fe94
3 changed files with 20 additions and 13 deletions

View File

@ -64,8 +64,20 @@
</ds-space>
</ds-form>
<ds-text v-else>
<sweetalert-icon :icon="changePasswordResult" />
{{ changePasswordResultMessage }}
<template v-if="changePasswordResult === 'success'">
<sweetalert-icon icon="success" />
<ds-text>
{{ $t(`verify-code.form.change-password.success`) }}
</ds-text>
</template>
<template v-else>
<sweetalert-icon icon="error" />
<ds-text align="left">
{{ $t(`verify-code.form.change-password.error`) }}
{{ $t('verify-code.form.change-password.help') }}
</ds-text>
<a href="mailto:support@human-connection.org">support@human-connection.org</a>
</template>
</ds-text>
</template>
</ds-space>
@ -132,12 +144,6 @@ export default {
changePasswordResult: null,
}
},
computed: {
changePasswordResultMessage() {
if (!this.changePasswordResult) return ''
return this.$t(`verify-code.form.change-password.${this.changePasswordResult}`)
},
},
methods: {
async handleInput() {
this.disabled = true
@ -161,9 +167,8 @@ export default {
const {
data: { resetPassword },
} = await this.$apollo.mutate({ mutation, variables })
const changePasswordResult = resetPassword ? 'success' : 'error'
this.changePasswordResult = changePasswordResult
this.$emit('change-password-result', changePasswordResult)
this.changePasswordResult = resetPassword ? 'success' : 'error'
this.$emit('change-password-result', this.changePasswordResult)
this.verification.formData = {
code: '',
email: '',

View File

@ -29,7 +29,8 @@
"next": "Weiter",
"change-password":{
"success": "Änderung des Passworts war erfolgreich",
"error": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?"
"error": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?",
"help": "Falls Probleme auftreten, schreib uns gerne eine Mail an:"
}
}
},

View File

@ -29,7 +29,8 @@
"next": "Continue",
"change-password": {
"success": "Changing your password was successful",
"error": "Changing your password failed. Maybe the security code was not correct?"
"error": "Changing your password failed. Maybe the security code was not correct?",
"help": "In case of problems, feel free to ask for help by sending us a mail to:"
}
}
},