Skip to content

Commit 3323ff8

Browse files
authored
fix: system popup take precedence over discovery popup (#1439)
1 parent 44c6617 commit 3323ff8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Discovery/DiscoveryActionBar.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ interface Props {
5454
actionToResume: 'download'|'export'|'manifest';
5555
selectedResources: any[];
5656
};
57+
systemPopupActivated: boolean;
5758
onActionResumed: () => any
5859
}
5960

@@ -572,7 +573,7 @@ const DiscoveryActionBar = (props: Props) => {
572573
</Popover>
573574
<Modal
574575
closable={false}
575-
open={downloadStatus.message.active}
576+
open={downloadStatus.message.active && !props.systemPopupActivated}
576577
title={downloadStatus.message.title}
577578
footer={(
578579
<Button

src/Discovery/reduxer.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const ReduxDiscoveryActionBar = (() => {
66
const mapStateToProps = (state) => ({
77
user: state.user,
88
discovery: state.discovery,
9+
systemPopupActivated: !!state.popups?.systemUseWarnPopup,
910
});
1011

1112
const mapDispatchToProps = (dispatch) => ({

0 commit comments

Comments
 (0)