Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

38 lines
1.1 KiB
Vue

<template id="wp2sv-start">
<component v-bind:is="stepComponent"></component>
</template>
<script>
export default {
data:function(){
return {
step:"welcome"
}
},
created:function(){
this.$root.$on('enroll:cancel',this.cancel);
this.$root.$on('enroll:start',this.start);
this.$root.$on('enroll:email-flow',this.emailEnroll);
this.$root.$on('enroll:app-flow',this.appEnroll)
},
methods:{
start:function(e){
e&&e.preventDefault();
this.emailEnroll();
},
appEnroll:function(e){
this.step='app';
},
emailEnroll:function(){
this.step='email';
},
cancel:function(){
this.step='welcome';
}
},
computed:{
stepComponent:function(){
return 'wp2sv-enroll-'+this.step;
}
}
}
</script>