Merge pull request #933 from opencv/bs/files_names

Names of selected files when creating a new task
main
Nikita Manovich 6 years ago committed by GitHub
commit 1f3b5b93e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,8 +87,11 @@ export default class FileManager extends React.PureComponent<Props, State> {
<Tabs.TabPane key='local' tab='My computer'>
<Upload.Dragger
multiple
listType='text'
fileList={files.local as any[]}
showUploadList={false}
showUploadList={files.local.length < 5 && {
showRemoveIcon: false,
}}
beforeUpload={(_: RcFile, newLocalFiles: RcFile[]): boolean => {
this.setState({
files: {
@ -107,12 +110,12 @@ export default class FileManager extends React.PureComponent<Props, State> {
Support for a bulk images or a single video
</p>
</Upload.Dragger>
{ !!files.local.length
{ files.local.length >= 5
&& (
<>
<br />
<Text className='cvat-black-color'>
{`${files.local.length} file(s) selected`}
{`${files.local.length} files selected`}
</Text>
</>
)

Loading…
Cancel
Save