Accept titles for uploads, fix duplicate full images
This commit is contained in:
parent
70f6f48044
commit
e50ecbf798
@ -113,6 +113,7 @@ export default function AdminUploadsTableRow({
|
||||
placeholder="Title (optional)"
|
||||
tabIndex={tabIndex}
|
||||
readOnly={isRowLoading}
|
||||
capitalize
|
||||
hideLabel
|
||||
/>
|
||||
<div className="flex items-center gap-2">
|
||||
@ -129,6 +130,7 @@ export default function AdminUploadsTableRow({
|
||||
: <>
|
||||
<AddUploadButton
|
||||
url={url}
|
||||
title={draftTitle}
|
||||
onAddStart={() => updateStatus({
|
||||
status: 'adding',
|
||||
statusMessage: 'Adding ...',
|
||||
|
||||
@ -22,10 +22,11 @@ export default function PhotoFullPage({
|
||||
<PhotosLarge {...{ photos }} />
|
||||
{photosCount > photos.length &&
|
||||
<PhotosLargeInfinite
|
||||
sortBy={sortBy}
|
||||
sortWithPriority={sortWithPriority}
|
||||
initialOffset={photos.length}
|
||||
itemsPerPage={INFINITE_SCROLL_FULL_MULTIPLE}
|
||||
sortBy={sortBy}
|
||||
sortWithPriority={sortWithPriority}
|
||||
excludeFromFeeds
|
||||
/>}
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -9,11 +9,13 @@ export default function PhotosLargeInfinite({
|
||||
initialOffset,
|
||||
itemsPerPage,
|
||||
sortBy,
|
||||
excludeFromFeeds,
|
||||
}: {
|
||||
initialOffset: number
|
||||
itemsPerPage: number
|
||||
sortBy: SortBy
|
||||
sortWithPriority: boolean
|
||||
excludeFromFeeds?: boolean
|
||||
}) {
|
||||
return (
|
||||
<InfinitePhotoScroll
|
||||
@ -21,6 +23,7 @@ export default function PhotosLargeInfinite({
|
||||
initialOffset={initialOffset}
|
||||
itemsPerPage={itemsPerPage}
|
||||
sortBy={sortBy}
|
||||
excludeFromFeeds={excludeFromFeeds}
|
||||
wrapMoreButtonInGrid
|
||||
>
|
||||
{({ photos, onLastPhotoVisible, revalidatePhoto }) =>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user