Nicer information messages

This commit is contained in:
Robert Schäfer 2019-06-18 16:11:05 +02:00
parent 3948cb8ace
commit 69434cdc7f
4 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,7 @@
<div v-else> <div v-else>
<transition name="ds-transition-fade"> <transition name="ds-transition-fade">
<ds-flex centered> <ds-flex centered>
<sweetalert-icon icon="success" /> <sweetalert-icon icon="info" />
</ds-flex> </ds-flex>
</transition> </transition>
<ds-text v-html="submitMessage" /> <ds-text v-html="submitMessage" />

View File

@ -64,6 +64,7 @@
</ds-space> </ds-space>
</ds-form> </ds-form>
<ds-text v-else> <ds-text v-else>
<sweetalert-icon :icon="changePasswordResult" />
{{ changePasswordResultMessage }} {{ changePasswordResultMessage }}
</ds-text> </ds-text>
</template> </template>
@ -74,9 +75,11 @@
<script> <script>
import PasswordStrength from '../Password/Strength' import PasswordStrength from '../Password/Strength'
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { SweetalertIcon } from 'vue-sweetalert-icons'
export default { export default {
components: { components: {
SweetalertIcon,
PasswordStrength, PasswordStrength,
}, },
data() { data() {

View File

@ -29,7 +29,7 @@
"submit": "Sicherheitscode überprüfen", "submit": "Sicherheitscode überprüfen",
"change-password":{ "change-password":{
"success": "Änderung des Passworts war erfolgreich", "success": "Änderung des Passworts war erfolgreich",
"failure": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?" "error": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?"
} }
} }
}, },

View File

@ -29,7 +29,7 @@
"submit": "Check security code", "submit": "Check security code",
"change-password": { "change-password": {
"success": "Changing your password was successful", "success": "Changing your password was successful",
"failure": "Changing your password failed. Maybe the security code was not correct?" "error": "Changing your password failed. Maybe the security code was not correct?"
} }
} }
}, },