Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -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>