Tweak batch upload language

This commit is contained in:
Sam Becker 2025-03-15 00:24:46 -05:00
parent 0f0d9a32e3
commit f2c32fa84f

View File

@ -21,6 +21,7 @@ import { UrlAddStatus } from './AdminUploadsClient';
import PhotoTagFieldset from './PhotoTagFieldset';
import DeleteUploadButton from './DeleteUploadButton';
import { useAppState } from '@/state/AppState';
import { pluralize } from '@/utility/string';
const UPLOAD_BATCH_SIZE = 4;
@ -124,11 +125,14 @@ export default function AdminBatchUploadActions({
tagErrorMessage ? 'text-error' : 'text-main',
)}>
{showBulkSettings
? tagErrorMessage || 'Apply to all uploads'
: `Found ${storageUrls.length} uploads`}
? (
tagErrorMessage ||
`Apply to ${pluralize(storageUrls.length, 'upload')}`
)
: `Found ${pluralize(storageUrls.length, 'upload')}`}
</div>
<FieldSetWithStatus
label="Apply Bulk Settings"
label="Apply to All"
type="checkbox"
value={showBulkSettings ? 'true' : 'false'}
onChange={value => setShowBulkSettings(value === 'true')}