Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | <template>
<div class="px-3 px-sm-intermediate px-inter-0 py-4 py-md-5 py-lg-6">
<div class="wrapper">
<div id="forgot-pass-email" class="d-flex flex-column align-items-center mx-auto">
<p>Ai uitat parola?</p>
<form-comp
:formSpecs="{
fields: getFields, // form fields
task: 'forgotPassEmail', // specifies what form fields to use from the vuex store
submitText: 'Submit', // submit button text
checkboxLabel: null // checkbox label
}"
@submit="submitForgotPassEmail"/>
</div>
</div>
</div>
</template>
<script>
import formComp from '../components/utilities/form-utils/form-comp.vue';
import {mapActions, mapGetters, mapMutations} from 'vuex';
export default {
auth: false,
components: {formComp},
computed: {
...mapGetters({
getFields: 'forgotPassEmailFields'
}),
},
methods: {
...mapActions(['sendResetPassEmail']),
...mapMutations(['resetInputState', 'changeError', 'changeIsResetPassEmail']),
/**
* Dispatches the sendResetPassEmail action when the submit button is clicked
* @see forgotPassEmail
* @return void
*/
async submitForgotPassEmail() {
this.changeError('');
await this.sendResetPassEmail();
}
},
/**
* Resets the error, isResetPassEmail and the fields for the forgot pass form when the page is destroyed
* @see destroyed
* @return void
*/
destroyed() {
this.resetInputState({task: 'forgotPassEmail'});
this.changeIsResetPassEmail(false);
this.changeError('');
}
}
</script>
<style lang="scss" scoped>
#forgot-pass-email {
width: 38%;
}
p {
font-size: 2rem;
}
@media screen and #{$ipad-pro-portrait-breakpoint},
screen and #{$ipad-landscape-breakpoint} {
#forgot-pass-email {
width: 100%;
padding-left: $spacer * 2 !important;
padding-right: $spacer * 2 !important;
}
p {
font-size: 1.8rem;
}
}
@include media-breakpoint-down(lg) {
#forgot-pass-email {
width: 100%;
}
p {
font-size: 1.7rem;
}
}
@include media-breakpoint-down(sm) {
p {
font-size: 1.4rem;
}
}
</style>
|