Skip to content

Commit ae37e9c

Browse files
authored
Merge pull request #137 from ditdot-dev/feature/footer-nav
Feature/footer nav
2 parents 58d2bde + 9b3d4c0 commit ae37e9c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/FlowForm.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</div>
6161
{{ language.percentCompleted.replace(':percent', percentCompleted) }}
6262
</div>
63-
<div class="f-nav">
63+
<div v-if="navigation" class="f-nav">
6464
<a
6565
class="f-prev"
6666
href="#"
@@ -151,6 +151,10 @@
151151
type: Boolean,
152152
default: true
153153
},
154+
navigation: {
155+
type: Boolean,
156+
default: true
157+
},
154158
timer: {
155159
type: Boolean,
156160
default: false
@@ -378,7 +382,9 @@
378382
e.stopPropagation()
379383
e.preventDefault()
380384
381-
this.goToPreviousQuestion()
385+
if (this.navigation) {
386+
this.goToPreviousQuestion()
387+
}
382388
} else {
383389
e.preventDefault()
384390

0 commit comments

Comments
 (0)