Skip to content

Commit

Permalink
Merge pull request #802 from MAIF/fix/796-projectSetting
Browse files Browse the repository at this point in the history
fix 796 : delete the confirmation message of project modification
  • Loading branch information
ptitFicus authored Apr 15, 2024
2 parents af23a81 + a49b341 commit 96edb02
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions izanami-frontend/src/pages/projectSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,20 +355,7 @@ function ProjectModification(props: {
defaultValue: project.description,
},
}}
onSubmit={(data: any) => {
return askConfirmation(
<>
Are you sure you want to rename this project {project.name} to{" "}
{data.name} ?
<br />
<p style={{ color: "red" }}>
<i className="bi bi-exclamation-triangle" />
&nbsp;This may break client calls !!!
</p>
</>,
() => updateMutation.mutateAsync(data).then(() => props.onDone())
);
}}
onSubmit={(data: any) => updateMutation.mutateAsync(data).then(() => props.onDone())}
footer={({ valid }: { valid: () => void }) => {
return (
<>
Expand Down

0 comments on commit 96edb02

Please sign in to comment.