Started to refactor pages

This commit is contained in:
Julien Nahum
2023-12-09 17:02:23 +01:00
parent 12778fad34
commit 6ee56ac4cc
10 changed files with 48 additions and 33 deletions

View File

@@ -279,7 +279,7 @@ export default {
]
},
init () {
if (this.$route.name === 'forms.create' || this.$route.name === 'forms.create.guest') { // Set Default fields
if (this.$route.name === 'forms.create' || this.$route.name === 'forms-create-guest') { // Set Default fields
this.formFields = (this.form.properties.length > 0) ? clonedeep(this.form.properties) : this.getDefaultFields()
} else {
this.formFields = clonedeep(this.form.properties).map((field) => {