mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
refactor: follow @mattwr18 code review
https://github.com/Human-Connection/Human-Connection/pull/1814#pullrequestreview-299434476
This commit is contained in:
parent
adec248b18
commit
01252b3584
@ -32,13 +32,17 @@
|
|||||||
</ds-form>
|
</ds-form>
|
||||||
<ds-space v-else>
|
<ds-space v-else>
|
||||||
<template v-if="changePasswordResult === 'success'">
|
<template v-if="changePasswordResult === 'success'">
|
||||||
|
<transition name="ds-transition-fade">
|
||||||
<sweetalert-icon icon="success" />
|
<sweetalert-icon icon="success" />
|
||||||
|
</transition>
|
||||||
<ds-text>
|
<ds-text>
|
||||||
{{ $t('components.password-reset.change-password.success') }}
|
{{ $t('components.password-reset.change-password.success') }}
|
||||||
</ds-text>
|
</ds-text>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
<transition name="ds-transition-fade">
|
||||||
<sweetalert-icon icon="error" />
|
<sweetalert-icon icon="error" />
|
||||||
|
</transition>
|
||||||
<ds-text>
|
<ds-text>
|
||||||
<p>
|
<p>
|
||||||
{{ $t(`components.password-reset.change-password.error`) }}
|
{{ $t(`components.password-reset.change-password.error`) }}
|
||||||
|
|||||||
@ -102,9 +102,3 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
|
||||||
.login-image {
|
|
||||||
width: 90%;
|
|
||||||
max-width: 200px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@ -1,12 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="response === 'success'">
|
<div v-if="response === 'success'">
|
||||||
|
<transition name="ds-transition-fade">
|
||||||
<sweetalert-icon icon="success" />
|
<sweetalert-icon icon="success" />
|
||||||
|
</transition>
|
||||||
<ds-text align="center" bold color="success">
|
<ds-text align="center" bold color="success">
|
||||||
{{ $t('components.registration.create-user-account.success') }}
|
{{ $t('components.registration.create-user-account.success') }}
|
||||||
</ds-text>
|
</ds-text>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="response === 'error'">
|
<div v-else-if="response === 'error'">
|
||||||
|
<transition name="ds-transition-fade">
|
||||||
<sweetalert-icon icon="error" />
|
<sweetalert-icon icon="error" />
|
||||||
|
</transition>
|
||||||
<ds-text align="center" bold color="danger">
|
<ds-text align="center" bold color="danger">
|
||||||
{{ $t('components.registration.create-user-account.error') }}
|
{{ $t('components.registration.create-user-account.error') }}
|
||||||
</ds-text>
|
</ds-text>
|
||||||
|
|||||||
@ -46,11 +46,15 @@
|
|||||||
</ds-space>
|
</ds-space>
|
||||||
<div v-else margin="large">
|
<div v-else margin="large">
|
||||||
<template v-if="!error">
|
<template v-if="!error">
|
||||||
|
<transition name="ds-transition-fade">
|
||||||
<sweetalert-icon icon="info" />
|
<sweetalert-icon icon="info" />
|
||||||
|
</transition>
|
||||||
<ds-text align="center" v-html="submitMessage" />
|
<ds-text align="center" v-html="submitMessage" />
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
<transition name="ds-transition-fade">
|
||||||
<sweetalert-icon icon="error" />
|
<sweetalert-icon icon="error" />
|
||||||
|
</transition>
|
||||||
<ds-text align="center">{{ error.message }}</ds-text>
|
<ds-text align="center">{{ error.message }}</ds-text>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -32,13 +32,3 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.signup-image {
|
|
||||||
width: 90%;
|
|
||||||
max-width: 200px;
|
|
||||||
}
|
|
||||||
.login-card {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user