From 16d7f3ce016a45636ea419f24c8b34284765fb28 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Sat, 20 Feb 2021 12:27:27 +0300 Subject: [PATCH] Using target="_blank" when downloading annotations (#2813) --- cvat-ui/src/components/cvat-app.tsx | 4 ++-- .../global-error-boundary/global-error-boundary.tsx | 6 +++++- cvat-ui/src/components/labels-editor/styles.scss | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cvat-ui/src/components/cvat-app.tsx b/cvat-ui/src/components/cvat-app.tsx index 1c2c868d..f4f333f9 100644 --- a/cvat-ui/src/components/cvat-app.tsx +++ b/cvat-ui/src/components/cvat-app.tsx @@ -1,4 +1,4 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -326,7 +326,7 @@ class CVATApplication extends React.PureComponent {/* eslint-disable-next-line */} - + diff --git a/cvat-ui/src/components/global-error-boundary/global-error-boundary.tsx b/cvat-ui/src/components/global-error-boundary/global-error-boundary.tsx index 30db61c7..0aaed57b 100644 --- a/cvat-ui/src/components/global-error-boundary/global-error-boundary.tsx +++ b/cvat-ui/src/components/global-error-boundary/global-error-boundary.tsx @@ -20,6 +20,10 @@ import logger, { LogType } from 'cvat-logger'; import CVATTooltip from 'components/common/cvat-tooltip'; import consts from 'consts'; +interface OwnProps { + children: JSX.Element; +} + interface StateToProps { job: any | null; serverVersion: string; @@ -62,7 +66,7 @@ function mapDispatchToProps(dispatch: ThunkDispatch): DispatchToProps { }; } -type Props = StateToProps & DispatchToProps; +type Props = StateToProps & DispatchToProps & OwnProps; class GlobalErrorBoundary extends React.PureComponent { public constructor(props: Props) { super(props); diff --git a/cvat-ui/src/components/labels-editor/styles.scss b/cvat-ui/src/components/labels-editor/styles.scss index 646ae32d..4f9634dc 100644 --- a/cvat-ui/src/components/labels-editor/styles.scss +++ b/cvat-ui/src/components/labels-editor/styles.scss @@ -33,6 +33,7 @@ textarea.ant-input.cvat-raw-labels-viewer { overflow-y: auto; min-height: 9em; flex-wrap: wrap; + align-items: baseline; } .cvat-constructor-viewer-item {