Browse Source

[FIX] step navigation

robert 6 years ago
parent
commit
c7a406a174
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/App.vue

+ 8 - 3
src/App.vue

@@ -97,6 +97,7 @@
             'settingsVisibility',
             'settings',
             'stores',
+            'initialPayment',
             'selectedStore',
             'showStoreSelector',
             'isManager',
@@ -106,11 +107,15 @@
         methods: {
             goNext() {
                 this.$refs.wizard.nextTab()
+
+                if (this.$refs.wizard.activeTabIndex >= 1) {
+                    this.changeInitialPayment(this.initialPayment)
+                }
             },
             goBack() {
-                if (this.$refs.wizard.isLastStep) {
-                    this.changeInitialPayment(0)
-                }
+                // if (this.$refs.wizard.activeTabIndex === 2) {
+                //     this.changeInitialPayment(0)
+                // }
 
                 this.$refs.wizard.prevTab()
             },