Skip to content

Commit

Permalink
form editor goback improvement (#379)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Nahum <[email protected]>
  • Loading branch information
chiragchhatrala and JhumanJ authored Apr 17, 2024
1 parent dbf5fd5 commit 8776414
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/components/open/forms/components/FormEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
v-if="backButton"
href="#"
class="ml-2 flex text-blue font-semibold text-sm"
@click.prevent="$router.back()"
@click.prevent="goBack"
>
<svg
class="w-3 h-3 text-blue mt-1 mr-1"
Expand Down Expand Up @@ -257,6 +257,13 @@ export default {
},
methods: {
goBack() {
if (this.isEdit) {
useRouter().push({ name: 'forms-slug-show-submissions', params: {slug:this.form.slug} })
} else {
useRouter().push({ name: 'home' })
}
},
displayFormModificationAlert(responseData) {
const alert = useAlert()
if (
Expand Down

0 comments on commit 8776414

Please sign in to comment.