diff --git a/nest_frontend/components/interactive/BoxRepositoryCreate.js b/nest_frontend/components/interactive/BoxRepositoryCreate.js index 9e63c57..c9997a0 100644 --- a/nest_frontend/components/interactive/BoxRepositoryCreate.js +++ b/nest_frontend/components/interactive/BoxRepositoryCreate.js @@ -19,7 +19,7 @@ import { useHistory } from "react-router" * @returns {JSX.Element} * @constructor */ -export default function BoxRepositoryCreate({ ...props }) { +export default function BoxRepositoryCreate({ running, ...props }) { const { id, evaluationMode, @@ -80,6 +80,7 @@ export default function BoxRepositoryCreate({ ...props }) { icon={faBackward} color={"Red"} onClick={() => revert()} + disabled={running} > Annulla modifiche @@ -88,6 +89,7 @@ export default function BoxRepositoryCreate({ ...props }) { icon={faPencilAlt} color={"Green"} onClick={_ => goToOnSuccess(save, history, "/repositories")()} + disabled={running} > Salva modifiche @@ -98,6 +100,7 @@ export default function BoxRepositoryCreate({ ...props }) { icon={faPlus} color={"Green"} onClick={_ => goToOnSuccess(save, history, "/repositories")()} + disabled={running} > Crea repository diff --git a/nest_frontend/components/providers/RepositoryEditor.js b/nest_frontend/components/providers/RepositoryEditor.js index 51b940b..248b00a 100644 --- a/nest_frontend/components/providers/RepositoryEditor.js +++ b/nest_frontend/components/providers/RepositoryEditor.js @@ -147,7 +147,7 @@ export default function RepositoryEditor({ - + )