Explorar o código

[FIX] step navigation

robert %!s(int64=6) %!d(string=hai) anos
pai
achega
c7a406a174
Modificáronse 1 ficheiros con 8 adicións e 3 borrados
  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()
             },