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.
This commit is contained in:
Julien Nahum 2025-03-26 17:07:02 +01:00
parent f77affb79e
commit 3e80c88527
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -7,7 +7,7 @@
>
<div class="flex justify-center items-center self-start py-px">
<Icon
name="bi:stars"
name="i-heroicons-sparkles-16-solid"
class="w-6 h-6 text-nt-blue"
/>
</div>