Skip to content

Commit

Permalink
Remove Form onClick action
Browse files Browse the repository at this point in the history
  • Loading branch information
N00bG1rl committed Sep 27, 2023
1 parent 04ff79a commit 5e70290
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const SetupSection = ({ application, currentMicroservice }: SetupSectionP
return;
}

setEditMicroserviceMode(false);
setIsLoading(true);

const editedMicroservice: InputEditMicroservice = {
Expand Down Expand Up @@ -140,7 +141,7 @@ export const SetupSection = ({ application, currentMicroservice }: SetupSectionP
>
<Box sx={{ 'mb': 3, '& button': { 'mr': 2, ':last-of-type': { mr: 0 } } }}>
<Button label='edit' disabled={editMicroserviceMode} startWithIcon='EditRounded' onClick={() => setEditMicroserviceMode(true)} />
<Button label='save' type='submit' disabled={!editMicroserviceMode} startWithIcon='SaveRounded' onClick={() => setEditMicroserviceMode(false)} />
<Button label='save' type='submit' disabled={!editMicroserviceMode} startWithIcon='SaveRounded' />
<Button label='Restart Microservice' startWithIcon='RestartAltRounded' onClick={() => setRestartDialogIsOpen(true)} />
<Button label='Delete Microservice' startWithIcon='DeleteRounded' onClick={() => setDeleteDialogIsOpen(true)} />
</Box>
Expand Down

0 comments on commit 5e70290

Please sign in to comment.