feat: more authentication failchecks
This commit is contained in:
+3
-1
@@ -3,6 +3,8 @@ import BIIcon from "~/components/BIIcon.vue";
|
||||
|
||||
const { getOpenDataReports } = usePublic()
|
||||
|
||||
const { user } = useAuth();
|
||||
|
||||
const stats = {
|
||||
total_reports: 14523,
|
||||
resolved_reports: 13890,
|
||||
@@ -38,7 +40,7 @@ const getStatusBadge = (status: string) => {
|
||||
e monitora l'intervento in totale trasparenza.
|
||||
</p>
|
||||
<div class="it-btn-container d-flex justify-content-center gap-3">
|
||||
<NuxtLink class="btn btn-primary" to="/auth/login">
|
||||
<NuxtLink v-if="isCitizen(user.value?.role)" class="btn btn-primary" to="/auth/login">
|
||||
Fai una segnalazione
|
||||
</NuxtLink>
|
||||
<NuxtLink class="btn btn-outline-primary" to="/open-data">
|
||||
|
||||
Reference in New Issue
Block a user