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 101 102 103 | <template>
<div class="delete-account-container specific-breakpoint m-lg-0 mb-4">
<p class="subtitle specific-breakpoint text-lg-end mb-5 mb-lg-2">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut, consectetur adipiscing elit</p>
<form-comp
:formSpecs="{
fields: getFields, // form fields
task: 'deleteAccount', // specifies what form fields to use from the vuex store
submitText: 'Sterge cont', // submit button text
checkboxLabel: 'Delete Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut' // checkbox label
}"
@submit="submitDeleteAccount"/>
</div>
</template>
<script>
import {mapActions, mapGetters, mapMutations} from "vuex";
import formComp from '../../../../components/utilities/form-utils/form-comp.vue';
export default {
components: {formComp},
computed: {
...mapGetters({
getFields: 'deleteAccountFields'
})
},
methods: {
...mapActions(['sendDeleteAccount']),
...mapMutations(['resetInputState', 'changeError']),
/**
* Dispatches the sendDeleteAccount action when the submit button is clicked
* @see submitDeleteAccount
* @return void
*/
async submitDeleteAccount() {
await this.sendDeleteAccount();
}
},
/**
* Resets the error and the fields for the delete account form when the page is destroyed
* @see destroyed
* @return void
*/
destroyed() {
this.resetInputState({task: 'changePass'});
this.changeError('');
}
}
</script>
<style lang="scss" scoped>
.subtitle {
font-size: 0.9rem;
color: rgb(0, 21, 44);
}
.delete-account-container {
width: 45%;
}
::v-deep .submit-button {
align-self: end;
}
@media screen and #{$ipad-pro-landscape-breakpoint},
screen and #{$ipad-pro-portrait-breakpoint},
screen and #{$ipad-landscape-breakpoint} {
.specific-breakpoint.delete-account-container {
width: 100%;
margin-bottom: $spacer * 1.5 !important;
}
.specific-breakpoint.subtitle {
font-size: 1.1rem;
text-align: justify;
margin-bottom: $spacer * 3 !important;
}
::v-deep .submit-button {
align-self: center;
}
}
@include media-breakpoint-down(lg) {
.delete-account-container {
width: 100%;
}
.subtitle {
font-size: 1rem;
text-align: justify;
}
::v-deep .submit-button {
align-self: center;
}
}
</style>
|