mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
feat: disable apply button on loading (#3404)
This commit is contained in:
parent
35348c3e90
commit
f09565f38f
@ -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();
|
||||
@ -249,7 +249,10 @@ export const ChangeRequestOverview: FC = () => {
|
||||
environmentId={
|
||||
changeRequest.environment
|
||||
}
|
||||
disabled={!allowChangeRequestActions}
|
||||
disabled={
|
||||
!allowChangeRequestActions ||
|
||||
loading
|
||||
}
|
||||
>
|
||||
Apply changes
|
||||
</PermissionButton>
|
||||
|
Loading…
Reference in New Issue
Block a user