|
|
|
|
@ -26,11 +26,14 @@ export interface AdvancedConfiguration {
|
|
|
|
|
useZipChunks: boolean;
|
|
|
|
|
dataChunkSize?: number;
|
|
|
|
|
useCache: boolean;
|
|
|
|
|
activeTab: string;
|
|
|
|
|
copyData?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Props = FormComponentProps & {
|
|
|
|
|
onSubmit(values: AdvancedConfiguration): void;
|
|
|
|
|
installedGit: boolean;
|
|
|
|
|
activeTab: string;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function isPositiveInteger(_: any, value: any, callback: any): void {
|
|
|
|
|
@ -114,6 +117,26 @@ class AdvancedConfigurationForm extends React.PureComponent<Props> {
|
|
|
|
|
form.resetFields();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
renderCopyDataChechbox(): JSX.Element {
|
|
|
|
|
const { form } = this.props;
|
|
|
|
|
return (
|
|
|
|
|
<Row>
|
|
|
|
|
<Col>
|
|
|
|
|
<Form.Item help='If you have a low data transfer rate over the network you can copy data into CVAT to speed up work'>
|
|
|
|
|
{form.getFieldDecorator('copyData', {
|
|
|
|
|
initialValue: false,
|
|
|
|
|
valuePropName: 'checked',
|
|
|
|
|
})(
|
|
|
|
|
<Checkbox>
|
|
|
|
|
<Text className='cvat-text-color'>Copy data into CVAT</Text>
|
|
|
|
|
</Checkbox>,
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private renderImageQuality(): JSX.Element {
|
|
|
|
|
const { form } = this.props;
|
|
|
|
|
|
|
|
|
|
@ -386,10 +409,12 @@ class AdvancedConfigurationForm extends React.PureComponent<Props> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public render(): JSX.Element {
|
|
|
|
|
const { installedGit } = this.props;
|
|
|
|
|
|
|
|
|
|
const { installedGit, activeTab } = this.props;
|
|
|
|
|
return (
|
|
|
|
|
<Form>
|
|
|
|
|
|
|
|
|
|
{activeTab === 'share' ? this.renderCopyDataChechbox() : null}
|
|
|
|
|
|
|
|
|
|
<Row>
|
|
|
|
|
<Col>{this.renderUzeZipChunks()}</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
|