opnform/client/pages/forms/[slug]/show/submissions.vue

25 lines
478 B
Vue

<template>
<form-submissions/>
</template>
<script setup>
import FormSubmissions from '~/components/open/forms/components/FormSubmissions.vue'
const props = defineProps({
form: {type: Object, required: true}
})
definePageMeta({
middleware: "auth"
})
useOpnSeoMeta({
title: (props.form) ? 'Form Submissions - ' + props.form.title : 'Form Submissions'
})
onBeforeRouteLeave(() => {
console.log('Clearing store state')
useRecordsStore().resetState()
})
</script>