Using target="_blank" when downloading annotations (#2813)

main
Boris Sekachev 5 years ago committed by GitHub
parent 6f0215d63b
commit 16d7f3ce01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
// Copyright (C) 2020 Intel Corporation // Copyright (C) 2020-2021 Intel Corporation
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
@ -326,7 +326,7 @@ class CVATApplication extends React.PureComponent<CVATAppProps & RouteComponentP
</Switch> </Switch>
</GlobalHotKeys> </GlobalHotKeys>
{/* eslint-disable-next-line */} {/* eslint-disable-next-line */}
<a id='downloadAnchor' style={{ display: 'none' }} download /> <a id='downloadAnchor' target='_blank' style={{ display: 'none' }} download />
</Layout.Content> </Layout.Content>
</Layout> </Layout>
</GlobalErrorBoundary> </GlobalErrorBoundary>

@ -20,6 +20,10 @@ import logger, { LogType } from 'cvat-logger';
import CVATTooltip from 'components/common/cvat-tooltip'; import CVATTooltip from 'components/common/cvat-tooltip';
import consts from 'consts'; import consts from 'consts';
interface OwnProps {
children: JSX.Element;
}
interface StateToProps { interface StateToProps {
job: any | null; job: any | null;
serverVersion: string; 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<Props, State> { class GlobalErrorBoundary extends React.PureComponent<Props, State> {
public constructor(props: Props) { public constructor(props: Props) {
super(props); super(props);

@ -33,6 +33,7 @@ textarea.ant-input.cvat-raw-labels-viewer {
overflow-y: auto; overflow-y: auto;
min-height: 9em; min-height: 9em;
flex-wrap: wrap; flex-wrap: wrap;
align-items: baseline;
} }
.cvat-constructor-viewer-item { .cvat-constructor-viewer-item {

Loading…
Cancel
Save