Names of selected files when creating a new task

main
Boris Sekachev 6 years ago
parent b5eacc4f7c
commit 3f84c07f00

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

Loading…
Cancel
Save