From ecb21152b51c71231cbb59b32a44178f5742652e Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Tue, 10 Dec 2019 14:51:38 +0300 Subject: [PATCH] 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 ( - + + + + + + )} + >