mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +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,
|
projectId,
|
||||||
id
|
id
|
||||||
);
|
);
|
||||||
const { changeState, addComment } = useChangeRequestApi();
|
const { changeState, addComment, loading } = useChangeRequestApi();
|
||||||
const { refetch: refetchChangeRequestOpen } =
|
const { refetch: refetchChangeRequestOpen } =
|
||||||
usePendingChangeRequests(projectId);
|
usePendingChangeRequests(projectId);
|
||||||
const { setToastData, setToastApiError } = useToast();
|
const { setToastData, setToastApiError } = useToast();
|
||||||
@ -249,7 +249,10 @@ export const ChangeRequestOverview: FC = () => {
|
|||||||
environmentId={
|
environmentId={
|
||||||
changeRequest.environment
|
changeRequest.environment
|
||||||
}
|
}
|
||||||
disabled={!allowChangeRequestActions}
|
disabled={
|
||||||
|
!allowChangeRequestActions ||
|
||||||
|
loading
|
||||||
|
}
|
||||||
>
|
>
|
||||||
Apply changes
|
Apply changes
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
|
Loading…
Reference in New Issue
Block a user