Merge branch 'main' of https://github.com/JhumanJ/OpnForm
This commit is contained in:
@@ -81,13 +81,14 @@ const emailSubmissionConfirmationHelp = computed(() => {
|
||||
|
||||
onBeforeMount(() => {
|
||||
for (const [keyname, defaultValue] of Object.entries({
|
||||
respondent_email: emailSubmissionConfirmationField.value !== null,
|
||||
notification_sender: "OpnForm",
|
||||
notification_subject: "We saved your answers",
|
||||
notification_body:
|
||||
"Hello there 👋 <br>This is a confirmation that your submission was successfully saved.",
|
||||
notifications_include_submission: true,
|
||||
})) {
|
||||
if (props.integrationData.settings[keyname] === undefined) {
|
||||
if (keyname === 'respondent_email' || props.integrationData.settings[keyname] === undefined) {
|
||||
props.integrationData.settings[keyname] = defaultValue
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,24 +209,24 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
formData() {
|
||||
return [...this.data].sort((a, b) => new Date(b.created_at) - new Date(a.created_at))
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
columns: {
|
||||
handler() {
|
||||
this.internalColumns = clonedeep(this.columns)
|
||||
this.onStructureChange()
|
||||
},
|
||||
deep: true,
|
||||
deep: true
|
||||
},
|
||||
data() {
|
||||
this.$nextTick(() => {
|
||||
this.handleScroll()
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
formData(){
|
||||
return this.data.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user