Skip to content

Commit 51d917c

Browse files
committed
Change prop name + small code cleanup
1 parent afd617b commit 51d917c

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

examples/questionnaire/Example.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
v-bind:questions="questions"
2222
v-bind:language="language"
2323
v-bind:standalone="true"
24-
v-bind:footer-nav="false"
24+
v-bind:navigation="false"
2525
>
2626
<!-- Custom content for the Complete/Submit screen slots in the FlowForm component -->
2727
<!-- We've overriden the default "complete" slot content -->

src/components/FlowForm.vue

Lines changed: 5 additions & 7 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 v-if="footerNav" class="f-nav">
63+
<div v-if="navigation" class="f-nav">
6464
<a
6565
class="f-prev"
6666
href="#"
@@ -147,7 +147,7 @@
147147
type: Boolean,
148148
default: true
149149
},
150-
footerNav: {
150+
navigation: {
151151
type: Boolean,
152152
default: true
153153
}
@@ -325,14 +325,12 @@
325325
}
326326
327327
if (e.shiftKey) {
328-
if (!this.footerNav) {
329-
return
330-
}
331-
332328
e.stopPropagation()
333329
e.preventDefault()
334330
335-
this.goToPreviousQuestion()
331+
if (this.navigation) {
332+
this.goToPreviousQuestion()
333+
}
336334
} else {
337335
e.preventDefault()
338336

0 commit comments

Comments
 (0)