From cf2184063dbaf87d553bb13b748082a5e75bb292 Mon Sep 17 00:00:00 2001 From: cristi Date: Tue, 18 Apr 2017 01:09:41 +0300 Subject: [PATCH] Progress percentage calculation fix --- src/components/TabWizard.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/TabWizard.vue b/src/components/TabWizard.vue index 21fd1e4..c223765 100644 --- a/src/components/TabWizard.vue +++ b/src/components/TabWizard.vue @@ -180,8 +180,9 @@ progress () { let percentage = 0 if (this.activeTabIndex > 0) { - let stepsToAdd = (this.activeTabIndex % 2 === 0) ? 3 : 2 - percentage = this.stepPercentage * (this.activeTabIndex + stepsToAdd) + let stepsToAdd = 1 + let stepMultiplier = 2 + percentage = this.stepPercentage * ((this.activeTabIndex * stepMultiplier) + stepsToAdd) } else { percentage = this.stepPercentage }