Add a delay to bulk image conversion loading state
Right, yeah, in prod this is way faster, so the loading indicator is a distraction!
This commit is contained in:
parent
5f1980241f
commit
e829cc5525
1 changed files with 8 additions and 6 deletions
|
@ -389,12 +389,14 @@ function BulkImageConverter() {
|
|||
/>
|
||||
<Box gridArea="status" textAlign="right" justifySelf="end">
|
||||
{loading ? (
|
||||
<Flex alignItems="center" opacity="0.8">
|
||||
<Spinner size="xs" marginRight="1.5" />
|
||||
<Box fontSize="sm">
|
||||
Found {outfitIds.length} outfit images, converting…
|
||||
</Box>
|
||||
</Flex>
|
||||
<Delay ms={1000}>
|
||||
<Flex alignItems="center" opacity="0.8">
|
||||
<Spinner size="xs" marginRight="1.5" />
|
||||
<Box fontSize="sm">
|
||||
Found {outfitIds.length} outfit images, converting…
|
||||
</Box>
|
||||
</Flex>
|
||||
</Delay>
|
||||
) : error ? (
|
||||
<ErrorMessage fontSize="sm">
|
||||
Error loading outfits. Try again?
|
||||
|
|
Loading…
Reference in a new issue