Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
#27 Emit on-complete on nextTab method upon last step
Browse files Browse the repository at this point in the history
  • Loading branch information
cristijora committed Aug 28, 2017
1 parent ce4aaba commit 3c75843
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/FormWizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<template>
<span @click="finish" class="wizard-footer-right" v-if="isLastStep">
<slot name="finish">
<slot name="nextTab">
<wizard-button :style="fillButtonStyle">
{{finishButtonText}}
</wizard-button>
Expand Down Expand Up @@ -242,7 +242,7 @@
this.changeTab(this.activeTabIndex, this.activeTabIndex + 1)
} else {
this.isLastStep = true
this.$emit('finished')
this.$emit('on-complete')
}
}
this.beforeTabChange(this.activeTabIndex, cb)
Expand All @@ -262,12 +262,6 @@
cb()
}
},
finish () {
let cb = () => {
this.$emit('on-complete')
}
this.beforeTabChange(this.activeTabIndex, cb)
},
setLoading (value) {
this.loading = value
this.$emit('on-loading', value)
Expand Down

0 comments on commit 3c75843

Please sign in to comment.