From efe78c32837f84fd07a817848af90a12339371ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sun, 30 May 2021 17:35:19 +0300 Subject: [PATCH] wizard next/prev button fixed.. --- resources/assets/js/views/wizard/Currencies.vue | 3 ++- resources/assets/js/views/wizard/Finish.vue | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/views/wizard/Currencies.vue b/resources/assets/js/views/wizard/Currencies.vue index c99b49b85..c0d6b98d5 100644 --- a/resources/assets/js/views/wizard/Currencies.vue +++ b/resources/assets/js/views/wizard/Currencies.vue @@ -417,13 +417,14 @@ export default { prev() { if (this.active-- > 2); - history.back() + //history.back() this.$router.push("/wizard/companies"); }, next() { if (this.active++ > 2); + this.$router.push("/wizard/taxes"); }, }, diff --git a/resources/assets/js/views/wizard/Finish.vue b/resources/assets/js/views/wizard/Finish.vue index 4e1ab1c8e..714f47184 100644 --- a/resources/assets/js/views/wizard/Finish.vue +++ b/resources/assets/js/views/wizard/Finish.vue @@ -132,11 +132,9 @@ export default { methods: { prev() { - this.active--; + if (this.active-- > 2); - if (this.active > 2) { - this.$router.push("/wizard/taxes"); - } + this.$router.push("/wizard/taxes"); }, finish() {