mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 03:55:41 +00:00
Use LoadingOverlay component
This commit is contained in:
@ -3,6 +3,7 @@ import {
|
||||
Alert,
|
||||
Checkbox,
|
||||
Divider,
|
||||
LoadingOverlay,
|
||||
Modal,
|
||||
NumberInput,
|
||||
ScrollArea,
|
||||
@ -396,11 +397,10 @@ export function ApiForm({
|
||||
>
|
||||
<Stack>
|
||||
<Divider />
|
||||
{definitionQuery.isFetching && (
|
||||
<Center>
|
||||
<Loader />
|
||||
</Center>
|
||||
)}
|
||||
<Stack>
|
||||
<LoadingOverlay
|
||||
visible={definitionQuery.isFetching || initialDataQuery.isFetching}
|
||||
/>
|
||||
{error && (
|
||||
<Alert
|
||||
radius="sm"
|
||||
@ -428,6 +428,7 @@ export function ApiForm({
|
||||
</Stack>
|
||||
</ScrollArea>
|
||||
)}
|
||||
</Stack>
|
||||
<Divider />
|
||||
<Group position="right">
|
||||
<Button onClick={onClose} variant="outline" radius="sm" color="red">
|
||||
|
Reference in New Issue
Block a user