Can disable couple photos #5
@ -414,7 +414,8 @@ export function CouplePage(p: {
|
|||||||
</PropertiesBox>
|
</PropertiesBox>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
{/* Photo */}
|
{
|
||||||
|
/* Photo */ !family.family.disable_couple_photos && (
|
||||||
<Grid item sm={12} md={6}>
|
<Grid item sm={12} md={6}>
|
||||||
<PropertiesBox title="Photo">
|
<PropertiesBox title="Photo">
|
||||||
<div style={{ textAlign: "center" }}>
|
<div style={{ textAlign: "center" }}>
|
||||||
@ -422,8 +423,8 @@ export function CouplePage(p: {
|
|||||||
<br />
|
<br />
|
||||||
{p.editing ? (
|
{p.editing ? (
|
||||||
<p>
|
<p>
|
||||||
Veuillez enregistrer / annuler les modifications apportées à
|
Veuillez enregistrer / annuler les modifications apportées
|
||||||
la fiche avant de changer la photo du couple.
|
à la fiche avant de changer la photo du couple.
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
@ -457,6 +458,8 @@ export function CouplePage(p: {
|
|||||||
</div>
|
</div>
|
||||||
</PropertiesBox>
|
</PropertiesBox>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
{/* Children */}
|
{/* Children */}
|
||||||
{p.children && (
|
{p.children && (
|
||||||
|
@ -225,6 +225,9 @@ function CouplesTable(p: {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// If couple photos are hidden, remove their column
|
||||||
|
if (family.family.disable_couple_photos) columns.splice(0, 1);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DataGrid
|
<DataGrid
|
||||||
style={{ flex: "1" }}
|
style={{ flex: "1" }}
|
||||||
@ -233,7 +236,7 @@ function CouplesTable(p: {
|
|||||||
autoPageSize
|
autoPageSize
|
||||||
getRowId={(c) => c.id}
|
getRowId={(c) => c.id}
|
||||||
onCellDoubleClick={(p) => {
|
onCellDoubleClick={(p) => {
|
||||||
let member;
|
/*let member;
|
||||||
if (p.field === "wife") member = family.members.get(p.row.wife);
|
if (p.field === "wife") member = family.members.get(p.row.wife);
|
||||||
else if (p.field === "husband")
|
else if (p.field === "husband")
|
||||||
member = family.members.get(p.row.husband);
|
member = family.members.get(p.row.husband);
|
||||||
@ -241,7 +244,7 @@ function CouplesTable(p: {
|
|||||||
if (member) {
|
if (member) {
|
||||||
n(family.family.memberURL(member));
|
n(family.family.memberURL(member));
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
n(family.family.coupleURL(p.row));
|
n(family.family.coupleURL(p.row));
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user