fix forms shows pages (#310)

This commit is contained in:
formsdev 2024-02-06 14:29:43 +05:30 committed by GitHub
parent e3805635a0
commit 4baa0d8a71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 31 deletions

View File

@ -21,15 +21,17 @@
</template> </template>
<script setup> <script setup>
import ShareLink from '../../../../components/pages/forms/show/ShareLink.vue' import ShareLink from '~/components/pages/forms/show/ShareLink.vue'
import EmbedCode from '../../../../components/pages/forms/show/EmbedCode.vue' import EmbedCode from '~/components/pages/forms/show/EmbedCode.vue'
import FormQrCode from '../../../../components/pages/forms/show/FormQrCode.vue' import FormQrCode from '~/components/pages/forms/show/FormQrCode.vue'
import UrlFormPrefill from '../../../../components/pages/forms/show/UrlFormPrefill.vue' import UrlFormPrefill from '~/components/pages/forms/show/UrlFormPrefill.vue'
import RegenerateFormLink from '../../../../components/pages/forms/show/RegenerateFormLink.vue' import RegenerateFormLink from '~/components/pages/forms/show/RegenerateFormLink.vue'
import AdvancedFormUrlSettings from '../../../../components/open/forms/components/AdvancedFormUrlSettings.vue' import AdvancedFormUrlSettings from '~/components/open/forms/components/AdvancedFormUrlSettings.vue'
import EmbedFormAsPopupModal from '../../../../components/pages/forms/show/EmbedFormAsPopupModal.vue' import EmbedFormAsPopupModal from '~/components/pages/forms/show/EmbedFormAsPopupModal.vue'
const props = defineProps({form: {type: Object, required: true}}) const props = defineProps({
form: {type: Object, required: true}
})
definePageMeta({ definePageMeta({
middleware: "auth" middleware: "auth"

View File

@ -7,26 +7,17 @@
</div> </div>
</template> </template>
<script> <script setup>
import FormStats from '../../../../components/open/forms/components/FormStats.vue' import FormStats from '~/components/open/forms/components/FormStats.vue'
export default { const props = defineProps({
components: {FormStats}, form: {type: Object, required: true}
})
props: {
form: {type: Object, required: true},
},
setup (props) {
definePageMeta({ definePageMeta({
middleware: "auth" middleware: "auth"
}) })
useOpnSeoMeta({ useOpnSeoMeta({
title: (props.form) ? 'Form Analytics - ' + props.form.title : 'Form Analytics' title: (props.form) ? 'Form Analytics - ' + props.form.title : 'Form Analytics'
}) })
},
computed: {
}
}
</script> </script>

View File

@ -5,11 +5,11 @@
</template> </template>
<script setup> <script setup>
import FormSubmissions from '../../../../components/open/forms/components/FormSubmissions.vue' import FormSubmissions from '~/components/open/forms/components/FormSubmissions.vue'
const props = { const props = defineProps({
form: {type: Object, required: true} form: {type: Object, required: true}
} })
definePageMeta({ definePageMeta({
middleware: "auth" middleware: "auth"