feat: implement Bari bounds validation and update UI components for admin panel
This commit is contained in:
@@ -18,6 +18,7 @@ const navLinks = [
|
||||
]
|
||||
|
||||
const { isAuthenticated, user, logout } = useAuth()
|
||||
const panelLabel = computed(() => user.value?.role?.toUpperCase() === 'ADMIN' ? 'Pannello admin' : 'Dashboard')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -49,7 +50,7 @@ const { isAuthenticated, user, logout } = useAuth()
|
||||
<span class="rounded-icon" aria-hidden="true">
|
||||
<BIIcon name="it-list" color="black" />
|
||||
</span>
|
||||
<span class="d-none d-lg-block">Dashboard</span>
|
||||
<span class="d-none d-lg-block">{{ panelLabel }}</span>
|
||||
</NuxtLink>
|
||||
|
||||
<NuxtLink class="btn btn-primary btn-icon btn-full" to="/profile"
|
||||
|
||||
Reference in New Issue
Block a user