Show save button only when modifications are made
This commit is contained in:
parent
6495085df6
commit
049b9bdd53
@ -186,6 +186,7 @@ export function MemberPage(p: {
|
||||
|
||||
const cancel = async () => {
|
||||
if (
|
||||
changed &&
|
||||
!(await confirm(
|
||||
"Voulez-vous vraiment retirer les modifications apportées ? Celles-ci seront perdues !"
|
||||
))
|
||||
@ -240,9 +241,9 @@ export function MemberPage(p: {
|
||||
)}
|
||||
|
||||
{/* Save button */}
|
||||
{p.editing && (
|
||||
{p.editing && changed && (
|
||||
<Button
|
||||
variant="contained"
|
||||
variant={"contained"}
|
||||
startIcon={<SaveIcon />}
|
||||
onClick={save}
|
||||
size="large"
|
||||
|
Loading…
Reference in New Issue
Block a user