# Review package: 71cd162..8423716 ## Commits 8423716 feat(showtags): endpoint cookie + toggle nel menu utente ## Files changed src/components/Header.astro | 18 ++++++++++++++++-- src/pages/api/admin/showtags.ts | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) ## Diff diff --git a/src/components/Header.astro b/src/components/Header.astro index eeb2cf3..bfcbcdc 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,39 +1,39 @@ --- import { site } from '../data/site'; import { t, contentImageUrl } from '../lib/content'; interface Props { user: { username: string; role: string } | null; showTags: boolean; canTags: boolean; } -const { user, canTags } = Astro.props; +const { user, canTags, showTags } = Astro.props; const path = Astro.url.pathname; const loginHref = `/login?next=${encodeURIComponent(path)}`; const areaHref = user?.role === 'superuser' ? '/admin/content' : '/admin'; ---