2023-12-09 15:47:03 +01:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<toggle-switch-input name="include_submission_data" v-model="compVal.include_submission_data" class="mt-4"
|
|
|
|
|
label="Include submission data"
|
|
|
|
|
help="With form submission answers"
|
|
|
|
|
/>
|
|
|
|
|
<toggle-switch-input name="link_open_form" v-model="compVal.link_open_form" class="mt-4"
|
2024-03-28 18:14:30 +01:00
|
|
|
label="'Open Form' Link"
|
2023-12-09 15:47:03 +01:00
|
|
|
help="Link to the form public page"
|
|
|
|
|
/>
|
|
|
|
|
<toggle-switch-input name="link_edit_form" v-model="compVal.link_edit_form" class="mt-4"
|
2024-03-28 18:14:30 +01:00
|
|
|
label="'Edit Form' Link"
|
2023-12-09 15:47:03 +01:00
|
|
|
help="Link to the form admin page"
|
|
|
|
|
/>
|
|
|
|
|
<toggle-switch-input name="views_submissions_count" v-model="compVal.views_submissions_count" class="mt-4"
|
2024-03-28 18:14:30 +01:00
|
|
|
label="Form Analytics" help="Form views and submissions count"
|
2023-12-09 15:47:03 +01:00
|
|
|
/>
|
|
|
|
|
<toggle-switch-input name="link_edit_submission" v-model="compVal.link_edit_submission" class="mt-4"
|
2024-03-28 18:14:30 +01:00
|
|
|
label="Edit Submission Link"
|
2023-12-09 15:47:03 +01:00
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
2024-03-28 18:46:29 +01:00
|
|
|
name: 'NotificationsMessageActions',
|
2023-12-09 15:47:03 +01:00
|
|
|
components: { },
|
|
|
|
|
props: {
|
2024-01-17 14:34:46 +01:00
|
|
|
modelValue: { required: false }
|
2023-12-09 15:47:03 +01:00
|
|
|
},
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
2024-01-17 14:34:46 +01:00
|
|
|
content: this.modelValue ?? {}
|
2023-12-09 15:47:03 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
compVal: {
|
|
|
|
|
set (val) {
|
|
|
|
|
this.content = val
|
|
|
|
|
this.$emit('input', this.compVal)
|
|
|
|
|
},
|
|
|
|
|
get () {
|
|
|
|
|
return this.content
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2024-01-17 14:34:46 +01:00
|
|
|
watch: {
|
|
|
|
|
modelValue (val) {
|
|
|
|
|
this.content = val
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-12-09 15:47:03 +01:00
|
|
|
|
|
|
|
|
created () {
|
|
|
|
|
if(this.compVal === undefined || this.compVal === null){
|
|
|
|
|
this.compVal = {}
|
|
|
|
|
}
|
|
|
|
|
['include_submission_data', 'link_open_form', 'link_edit_form', 'views_submissions_count', 'link_edit_submission'].forEach((keyname) => {
|
|
|
|
|
if (this.compVal[keyname] === undefined) {
|
|
|
|
|
this.compVal[keyname] = true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: { }
|
|
|
|
|
}
|
|
|
|
|
</script>
|