2023-12-09 14:47:03 +00:00
|
|
|
<template>
|
2024-02-22 15:56:35 +00:00
|
|
|
<form-submissions/>
|
2023-12-09 14:47:03 +00:00
|
|
|
</template>
|
|
|
|
|
2024-01-11 16:16:50 +00:00
|
|
|
<script setup>
|
2024-02-06 08:59:43 +00:00
|
|
|
import FormSubmissions from '~/components/open/forms/components/FormSubmissions.vue'
|
2023-12-09 14:47:03 +00:00
|
|
|
|
2024-02-06 08:59:43 +00:00
|
|
|
const props = defineProps({
|
2024-01-11 16:16:50 +00:00
|
|
|
form: {type: Object, required: true}
|
2024-02-06 08:59:43 +00:00
|
|
|
})
|
2023-12-09 14:47:03 +00:00
|
|
|
|
2024-01-11 16:16:50 +00:00
|
|
|
definePageMeta({
|
|
|
|
middleware: "auth"
|
|
|
|
})
|
|
|
|
useOpnSeoMeta({
|
|
|
|
title: (props.form) ? 'Form Submissions - ' + props.form.title : 'Form Submissions'
|
|
|
|
})
|
2023-12-09 14:47:03 +00:00
|
|
|
|
2024-02-22 15:56:35 +00:00
|
|
|
onBeforeRouteLeave(() => {
|
2024-02-03 11:50:57 +00:00
|
|
|
console.log('Clearing store state')
|
|
|
|
useRecordsStore().resetState()
|
|
|
|
})
|
|
|
|
|
2023-12-09 14:47:03 +00:00
|
|
|
</script>
|