Beautiful Open-Source Form Builder
Fix show route name - password, navbar etc
Julien Nahumac8204008069
diff --git a/client/components/global/Navbar.vue b/client/components/global/Navbar.vueindex 79607df71..f1fa4e932 100644--- a/client/components/global/Navbar.vue+++ b/client/components/global/Navbar.vue@@ -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 navif (this.form.cover_picture || this.form.no_branding) {diff --git a/client/components/open/forms/OpenCompleteForm.vue b/client/components/open/forms/OpenCompleteForm.vueindex 204e63a0e..52337e5bc 100644--- a/client/components/open/forms/OpenCompleteForm.vue+++ b/client/components/open/forms/OpenCompleteForm.vue@@ -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'))diff --git a/client/components/open/forms/OpenFormField.vue b/client/components/open/forms/OpenFormField.vueindex a7b11d430..fe8e84659 100644--- a/client/components/open/forms/OpenFormField.vue+++ b/client/components/open/forms/OpenFormField.vue@@ -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