Skip to content

Commit

Permalink
feat: disable apply button on loading (#3404)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Mar 28, 2023
1 parent 35348c3 commit f09565f
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -79,7 +79,7 @@ export const ChangeRequestOverview: FC = () => {
projectId,
id
);
const { changeState, addComment } = useChangeRequestApi();
const { changeState, addComment, loading } = useChangeRequestApi();
const { refetch: refetchChangeRequestOpen } =
usePendingChangeRequests(projectId);
const { setToastData, setToastApiError } = useToast();
Expand Down Expand Up @@ -249,7 +249,10 @@ export const ChangeRequestOverview: FC = () => {
environmentId={
changeRequest.environment
}
disabled={!allowChangeRequestActions}
disabled={
!allowChangeRequestActions ||
loading
}
>
Apply changes
</PermissionButton>
Expand Down

0 comments on commit f09565f

Please sign in to comment.