refactor: follow @mattwr18 code review

https://github.com/Human-Connection/Human-Connection/pull/1814#pullrequestreview-299434476
This commit is contained in:
roschaefer 2019-10-10 14:04:00 +02:00 committed by mattwr18
parent adec248b18
commit 01252b3584
5 changed files with 18 additions and 22 deletions

View File

@ -32,13 +32,17 @@
</ds-form>
<ds-space v-else>
<template v-if="changePasswordResult === 'success'">
<sweetalert-icon icon="success" />
<transition name="ds-transition-fade">
<sweetalert-icon icon="success" />
</transition>
<ds-text>
{{ $t('components.password-reset.change-password.success') }}
</ds-text>
</template>
<template v-else>
<sweetalert-icon icon="error" />
<transition name="ds-transition-fade">
<sweetalert-icon icon="error" />
</transition>
<ds-text>
<p>
{{ $t(`components.password-reset.change-password.error`) }}

View File

@ -102,9 +102,3 @@ export default {
},
}
</script>
<style scoped>
.login-image {
width: 90%;
max-width: 200px;
}
</style>

View File

@ -1,12 +1,16 @@
<template>
<div v-if="response === 'success'">
<sweetalert-icon icon="success" />
<transition name="ds-transition-fade">
<sweetalert-icon icon="success" />
</transition>
<ds-text align="center" bold color="success">
{{ $t('components.registration.create-user-account.success') }}
</ds-text>
</div>
<div v-else-if="response === 'error'">
<sweetalert-icon icon="error" />
<transition name="ds-transition-fade">
<sweetalert-icon icon="error" />
</transition>
<ds-text align="center" bold color="danger">
{{ $t('components.registration.create-user-account.error') }}
</ds-text>

View File

@ -46,11 +46,15 @@
</ds-space>
<div v-else margin="large">
<template v-if="!error">
<sweetalert-icon icon="info" />
<transition name="ds-transition-fade">
<sweetalert-icon icon="info" />
</transition>
<ds-text align="center" v-html="submitMessage" />
</template>
<template v-else>
<sweetalert-icon icon="error" />
<transition name="ds-transition-fade">
<sweetalert-icon icon="error" />
</transition>
<ds-text align="center">{{ error.message }}</ds-text>
</template>
</div>

View File

@ -32,13 +32,3 @@ export default {
},
}
</script>
<style lang="scss" scoped>
.signup-image {
width: 90%;
max-width: 200px;
}
.login-card {
position: relative;
}
</style>