Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/ImageGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ export const ImageGallery: React.FC = () => {
</AppBar>
</Slide>

{selectedImages.length > 0 && <Toolbar />}

<Divider sx={{ mb: 2 }} />
<Typography
color="text.primary"
Expand All @@ -261,6 +259,7 @@ export const ImageGallery: React.FC = () => {
</Typography>
<Grid container spacing={1} columns={{ xs: 3, sm: 4, lg: 6, xl: 8 }}>
{hasImages &&
!trashObjectMutation.isPending &&
data.pages
.map((page) => page.properties)
.flat()
Expand Down Expand Up @@ -304,7 +303,7 @@ export const ImageGallery: React.FC = () => {
The gallery has no images. Please upload images.{' '}
</Typography>
)}
{isLoading && <Loading />}
{(isLoading || trashObjectMutation.isPending) && <Loading />}
{currentImage !== null && imageIds && (
<Preview
isOpen={previewOpen}
Expand Down
2 changes: 0 additions & 2 deletions src/components/TrashGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ export const TrashGallery: React.FC = () => {
</AppBar>
</Slide>

{selectedImages.length > 0 && <Toolbar />}

<Divider sx={{ mb: 2 }} />
{!isLoading && hasImages && (
<Box
Expand Down
Loading