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

27 lines
511 B
Vue
Raw Normal View History

2023-12-09 14:47:03 +00:00
<template>
<div id="table-page">
<form-submissions/>
</div>
</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
onBeforeRouteLeave(()=>{
console.log('Clearing store state')
useRecordsStore().resetState()
})
2023-12-09 14:47:03 +00:00
</script>