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

@ -170,7 +170,7 @@ export default {
return this.opnformConfig.links.help_url
},
form() {
if (this.$route.name && this.$route.name.startsWith('forms.show_public')) {
if (this.$route.name && this.$route.name.startsWith('forms-slug')) {
return this.formsStore.getByKey(this.$route.params.slug)
}
return null
@ -182,12 +182,12 @@ export default {
return this.config.public.paidPlansEnabled
},
showAuth() {
return this.$route.name && !this.$route.name.startsWith('forms.show_public')
return this.$route.name && !this.$route.name.startsWith('forms-slug')
},
hasNavbar() {
if (this.isIframe) return false
if (this.$route.name && this.$route.name.startsWith('forms.show_public')) {
if (this.$route.name && this.$route.name.startsWith('forms-slug')) {
if (this.form) {
// If there is a cover, or if branding is hidden remove nav
if (this.form.cover_picture || this.form.no_branding) {

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