From d3378b51da5f5ee8eaaa50128a60156be4a5448c Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Tue, 10 Dec 2019 13:08:30 +0300 Subject: [PATCH] Improved some hints --- .../advanced-configuration-form.tsx | 16 ++--- .../basic-configuration-form.tsx | 2 +- .../components/labels-editor/label-form.tsx | 58 ++++++++++--------- 3 files changed, 40 insertions(+), 36 deletions(-) diff --git a/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx b/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx index c12cf882..69706044 100644 --- a/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx +++ b/cvat-ui/src/components/create-task-page/advanced-configuration-form.tsx @@ -84,7 +84,7 @@ class AdvancedConfigurationForm extends React.PureComponent { const { form } = this.props; return ( - + Image quality}> {form.getFieldDecorator('imageQuality', { initialValue: 70, @@ -110,7 +110,7 @@ class AdvancedConfigurationForm extends React.PureComponent { const { form } = this.props; return ( - + Overlap size}> {form.getFieldDecorator('overlapSize')( , @@ -124,7 +124,7 @@ class AdvancedConfigurationForm extends React.PureComponent { const { form } = this.props; return ( - + Segment size}> {form.getFieldDecorator('segmentSize')( , @@ -138,7 +138,7 @@ class AdvancedConfigurationForm extends React.PureComponent { const { form } = this.props; return ( - + Start frame}> {form.getFieldDecorator('startFrame')( { const { form } = this.props; return ( - + Stop frame}> {form.getFieldDecorator('stopFrame')( { const { form } = this.props; return ( - + Frame step}> {form.getFieldDecorator('frameStep')( { return ( Dataset repository URL} extra='Attach a repository to store annotations there' > {form.getFieldDecorator('repository', { @@ -265,7 +265,7 @@ class AdvancedConfigurationForm extends React.PureComponent { return ( Issue tracker} extra='Attach issue tracker where the task is described' > {form.getFieldDecorator('bugTracker', { diff --git a/cvat-ui/src/components/create-task-page/basic-configuration-form.tsx b/cvat-ui/src/components/create-task-page/basic-configuration-form.tsx index 7bb56b65..33285530 100644 --- a/cvat-ui/src/components/create-task-page/basic-configuration-form.tsx +++ b/cvat-ui/src/components/create-task-page/basic-configuration-form.tsx @@ -46,7 +46,7 @@ class BasicConfigurationForm extends React.PureComponent { return (
e.preventDefault()}> - + Name}> { getFieldDecorator('name', { rules: [{ required: true, diff --git a/cvat-ui/src/components/labels-editor/label-form.tsx b/cvat-ui/src/components/labels-editor/label-form.tsx index ff76073f..a95948c1 100644 --- a/cvat-ui/src/components/labels-editor/label-form.tsx +++ b/cvat-ui/src/components/labels-editor/label-form.tsx @@ -177,23 +177,25 @@ class LabelForm extends React.PureComponent { }; return ( - - { form.getFieldDecorator(`values[${key}]`, { - initialValue: existedValues, - rules: [{ - required: true, - message: 'Please specify values', - }, { - validator, - }], - })( - , + )} + + ); } @@ -202,16 +204,18 @@ class LabelForm extends React.PureComponent { const { form } = this.props; return ( - - { form.getFieldDecorator(`values[${key}]`, { - initialValue: value, - })( - , - )} - + + + { form.getFieldDecorator(`values[${key}]`, { + initialValue: value, + })( + , + )} + + ); }