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