Skip to content

Commit

Permalink
resolved issue cvat-ai#7636
Browse files Browse the repository at this point in the history
  • Loading branch information
thekavikumar committed Mar 19, 2024
1 parent 25b26b0 commit b4cf635
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cvat-ui/src/components/labels-editor/labels-editor.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) 2023-2024 CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand All @@ -11,6 +11,7 @@ import ModalConfirm from 'antd/lib/modal/confirm';
import {
EditOutlined, BuildOutlined, ExclamationCircleOutlined,
} from '@ant-design/icons';
import notification from 'antd/lib/notification';

import { SerializedLabel, SerializedAttribute } from 'cvat-core-wrapper';
import RawViewer from './raw-viewer';
Expand Down Expand Up @@ -207,6 +208,10 @@ export default class LabelsEditor extends React.PureComponent<LabelsEditorProps,
.map((label: LabelOptColor): LabelOptColor => transformLabel(label));

onSubmit(output);
notification.success({
message: 'The label has been created!',
className: 'cvat-notification-create-label-success',
});
}

public render(): JSX.Element {
Expand Down

0 comments on commit b4cf635

Please sign in to comment.