[names] published=false wasn't really hiding the page

This commit is contained in:
Andrea 2021-12-26 14:46:04 +01:00
parent a82c456d4e
commit 7b96273825
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
{name: 'terminology.header', icon: 'flag', route: config.terminology.route, condition: config.terminology.enabled}, {name: 'terminology.header', icon: 'flag', route: config.terminology.route, condition: config.terminology.enabled},
{name: 'inclusive.header', icon: 'book-heart', route: config.inclusive.route, condition: config.inclusive.enabled}, {name: 'inclusive.header', icon: 'book-heart', route: config.inclusive.route, condition: config.inclusive.enabled},
{name: 'calendar.header', route: config.calendar.route, icon: 'calendar-star', condition: config.calendar && config.calendar.enabled}, {name: 'calendar.header', route: config.calendar.route, icon: 'calendar-star', condition: config.calendar && config.calendar.enabled},
{name: 'names.header', route: config.names.route, icon: 'signature', condition: config.names && config.names.enabled && (config.names.published || $isGranted('names'))},
{name: 'census.header', route: config.census.route, icon: 'user-chart', condition: config.census.enabled}, {name: 'census.header', route: config.census.route, icon: 'user-chart', condition: config.census.enabled},
{name: 'people.header', route: config.people.route, icon: 'user-friends', condition: config.people.enabled}, {name: 'people.header', route: config.people.route, icon: 'user-friends', condition: config.people.enabled},
{name: 'contact.team.nameShort', route: config.contact.team.route, icon: 'collective-logo.svg', iconInverse: darkMode}, {name: 'contact.team.nameShort', route: config.contact.team.route, icon: 'collective-logo.svg', iconInverse: darkMode},

View File

@ -1,5 +1,8 @@
<template> <template>
<div> <NotFound v-if="!config.names || !config.names.enabled || (!config.names.published && !$isGranted('names'))"/>
<div v-else>
<CommunityNav/>
<h2> <h2>
<Icon v="signature"/> <Icon v="signature"/>
<T>names.headerLong</T> <T>names.headerLong</T>