Update menu when disabling some features
This commit is contained in:
parent
9c8b424759
commit
a69f040181
@ -132,6 +132,8 @@ export function BaseFamilyRoute(): React.ReactElement {
|
|||||||
|
|
||||||
<FamilyLink icon={<HomeIcon />} label="Accueil" uri="" />
|
<FamilyLink icon={<HomeIcon />} label="Accueil" uri="" />
|
||||||
|
|
||||||
|
{family?.enable_genealogy && (
|
||||||
|
<>
|
||||||
<Divider sx={{ my: 1 }} />
|
<Divider sx={{ my: 1 }} />
|
||||||
<ListSubheader component="div">Généalogie</ListSubheader>
|
<ListSubheader component="div">Généalogie</ListSubheader>
|
||||||
|
|
||||||
@ -146,7 +148,9 @@ export function BaseFamilyRoute(): React.ReactElement {
|
|||||||
uri="genealogy/members"
|
uri="genealogy/members"
|
||||||
secondaryAction={
|
secondaryAction={
|
||||||
<Tooltip title="Créer une nouvelle fiche de membre">
|
<Tooltip title="Créer une nouvelle fiche de membre">
|
||||||
<RouterLink to={family!.URL("genealogy/member/create")}>
|
<RouterLink
|
||||||
|
to={family!.URL("genealogy/member/create")}
|
||||||
|
>
|
||||||
<IconButton>
|
<IconButton>
|
||||||
<Icon path={mdiPlus} size={0.75} />
|
<Icon path={mdiPlus} size={0.75} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@ -161,7 +165,9 @@ export function BaseFamilyRoute(): React.ReactElement {
|
|||||||
uri="genealogy/couples"
|
uri="genealogy/couples"
|
||||||
secondaryAction={
|
secondaryAction={
|
||||||
<Tooltip title="Créer une nouvelle fiche de couple">
|
<Tooltip title="Créer une nouvelle fiche de couple">
|
||||||
<RouterLink to={family!.URL("genealogy/couple/create")}>
|
<RouterLink
|
||||||
|
to={family!.URL("genealogy/couple/create")}
|
||||||
|
>
|
||||||
<IconButton>
|
<IconButton>
|
||||||
<Icon path={mdiPlus} size={0.75} />
|
<Icon path={mdiPlus} size={0.75} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@ -175,6 +181,8 @@ export function BaseFamilyRoute(): React.ReactElement {
|
|||||||
label="Arbre"
|
label="Arbre"
|
||||||
uri="genealogy/tree"
|
uri="genealogy/tree"
|
||||||
/>
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
<Divider sx={{ my: 1 }} />
|
<Divider sx={{ my: 1 }} />
|
||||||
<ListSubheader component="div">Administration</ListSubheader>
|
<ListSubheader component="div">Administration</ListSubheader>
|
||||||
|
Loading…
Reference in New Issue
Block a user