From 3e80c88527f764078dacc18fd902b678d508a507 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Wed, 26 Mar 2025 17:07:02 +0100 Subject: [PATCH] Update Navbar.vue and FormCleanings.vue for Improved Logic and UI Consistency - Modified Navbar.vue to enhance form validation logic by allowing access when `import.meta.server` is true, improving handling of form states in specific routes. - Updated FormCleanings.vue to replace the icon name from "bi:stars" to "i-heroicons-sparkles-16-solid", ensuring consistency with the icon library used across the application. These changes aim to improve the user experience and maintainability of the components by refining logic and standardizing UI elements. --- client/components/global/Navbar.vue | 2 +- client/components/pages/forms/show/FormCleanings.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/global/Navbar.vue b/client/components/global/Navbar.vue index 5bb2fcec..14dca958 100644 --- a/client/components/global/Navbar.vue +++ b/client/components/global/Navbar.vue @@ -317,7 +317,7 @@ export default { if (this.isIframe) return false if (this.$route.name && this.$route.name === "forms-slug") { - if (this.form) { + if (this.form || import.meta.server) { return false } else { // Form not found/404 case - show the navbar diff --git a/client/components/pages/forms/show/FormCleanings.vue b/client/components/pages/forms/show/FormCleanings.vue index bb31dc85..b72d56ab 100644 --- a/client/components/pages/forms/show/FormCleanings.vue +++ b/client/components/pages/forms/show/FormCleanings.vue @@ -7,7 +7,7 @@ >