Tweak batch upload language
This commit is contained in:
parent
0f0d9a32e3
commit
f2c32fa84f
@ -21,6 +21,7 @@ import { UrlAddStatus } from './AdminUploadsClient';
|
|||||||
import PhotoTagFieldset from './PhotoTagFieldset';
|
import PhotoTagFieldset from './PhotoTagFieldset';
|
||||||
import DeleteUploadButton from './DeleteUploadButton';
|
import DeleteUploadButton from './DeleteUploadButton';
|
||||||
import { useAppState } from '@/state/AppState';
|
import { useAppState } from '@/state/AppState';
|
||||||
|
import { pluralize } from '@/utility/string';
|
||||||
|
|
||||||
const UPLOAD_BATCH_SIZE = 4;
|
const UPLOAD_BATCH_SIZE = 4;
|
||||||
|
|
||||||
@ -124,11 +125,14 @@ export default function AdminBatchUploadActions({
|
|||||||
tagErrorMessage ? 'text-error' : 'text-main',
|
tagErrorMessage ? 'text-error' : 'text-main',
|
||||||
)}>
|
)}>
|
||||||
{showBulkSettings
|
{showBulkSettings
|
||||||
? tagErrorMessage || 'Apply to all uploads'
|
? (
|
||||||
: `Found ${storageUrls.length} uploads`}
|
tagErrorMessage ||
|
||||||
|
`Apply to ${pluralize(storageUrls.length, 'upload')}`
|
||||||
|
)
|
||||||
|
: `Found ${pluralize(storageUrls.length, 'upload')}`}
|
||||||
</div>
|
</div>
|
||||||
<FieldSetWithStatus
|
<FieldSetWithStatus
|
||||||
label="Apply Bulk Settings"
|
label="Apply to All"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value={showBulkSettings ? 'true' : 'false'}
|
value={showBulkSettings ? 'true' : 'false'}
|
||||||
onChange={value => setShowBulkSettings(value === 'true')}
|
onChange={value => setShowBulkSettings(value === 'true')}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user