feat : Ajout d'un écran pour afficher les informations d'un bovin
This commit is contained in:
@@ -28,6 +28,15 @@
|
||||
Reception
|
||||
</a>
|
||||
</NuxtLink>
|
||||
<NuxtLink to="/identification-bovin" custom v-slot="{ href, navigate, isActive }">
|
||||
<a
|
||||
:href="href"
|
||||
@click="navigate"
|
||||
:class="isIdentificationActive ? 'opacity-100' : 'opacity-50'"
|
||||
>
|
||||
Identification
|
||||
</a>
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
<button
|
||||
type="button"
|
||||
@@ -50,6 +59,7 @@ import { useAuthStore } from '~/stores/auth'
|
||||
const route = useRoute()
|
||||
const auth = useAuthStore()
|
||||
const isReceptionActive = computed(() => route.path.startsWith('/reception'))
|
||||
const isIdentificationActive = computed(() => route.path.startsWith('/identification-bovin'))
|
||||
|
||||
const handleLogout = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user