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

25 lines
478 B
Vue
Raw Normal View History

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(() => {
console.log('Clearing store state')
useRecordsStore().resetState()
})
2023-12-09 14:47:03 +00:00
</script>