From ecb21152b51c71231cbb59b32a44178f5742652e Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Tue, 10 Dec 2019 14:51:38 +0300 Subject: [PATCH 1/2] Added ability to copy labels without IDs --- .../labels-editor/labels-editor.tsx | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/cvat-ui/src/components/labels-editor/labels-editor.tsx b/cvat-ui/src/components/labels-editor/labels-editor.tsx index 912caf37..ad5a78bf 100644 --- a/cvat-ui/src/components/labels-editor/labels-editor.tsx +++ b/cvat-ui/src/components/labels-editor/labels-editor.tsx @@ -3,11 +3,15 @@ import React from 'react'; import { Tabs, Icon, + Button, + Tooltip, notification, } from 'antd'; import Text from 'antd/lib/typography/Text'; +import copy from 'copy-to-clipboard'; + import RawViewer from './raw-viewer'; import ConstructorViewer from './constructor-viewer'; import ConstructorCreator from './constructor-creator'; @@ -225,7 +229,35 @@ export default class LabelsEditor } = this.state; return ( - + + + + + + )} + > Date: Tue, 10 Dec 2019 18:25:03 +0300 Subject: [PATCH 2/2] Removed extra lines --- cvat-ui/src/components/labels-editor/label-form.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cvat-ui/src/components/labels-editor/label-form.tsx b/cvat-ui/src/components/labels-editor/label-form.tsx index a95948c1..6bd5630a 100644 --- a/cvat-ui/src/components/labels-editor/label-form.tsx +++ b/cvat-ui/src/components/labels-editor/label-form.tsx @@ -509,8 +509,3 @@ class LabelForm extends React.PureComponent { } export default Form.create()(LabelForm); - - -// add validators -// add initial values -// add readonly fields