22 lines
453 B
Vue
22 lines
453 B
Vue
<template>
|
|
<section>
|
|
<base-card>
|
|
<h2>Register as a coach, now!</h2>
|
|
<coach-form @save-data="saveData"> </coach-form>
|
|
</base-card>
|
|
</section>
|
|
</template>
|
|
<script>
|
|
import CoachForm from '../../components/coaches/CoachForm.vue';
|
|
|
|
export default {
|
|
components: { CoachForm },
|
|
methods: {
|
|
saveData(data) {
|
|
this.$store.dispatch('coaches/registerCoach', data);
|
|
this.$router.replace('/coaches');
|
|
}
|
|
}
|
|
};
|
|
</script>
|