Fix show route name - password, navbar etc

This commit is contained in:
Julien Nahum
2024-01-16 12:58:41 +01:00
parent b8bbe5bb3e
commit ac82040080
3 changed files with 5 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ export default {
return this.themes[this.themes.hasOwnProperty(this.form.theme) ? this.form.theme : 'default']
},
isPublicFormPage () {
return this.$route.name === 'forms.show_public'
return this.$route.name === 'forms-slug'
},
isHideTitle () {
return this.form.hide_title || (process.client && window.location.href.includes('hide_title=true'))

View File

@@ -166,7 +166,7 @@ export default {
}[field.type]
},
isPublicFormPage () {
return this.$route.name === 'forms.show_public'
return this.$route.name === 'forms-slug'
},
isFieldHidden () {
return !this.showHidden && this.shouldBeHidden