Skip to content

Commit

Permalink
fix: system popup take precedence over discovery popup (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao authored Oct 18, 2023
1 parent 44c6617 commit 3323ff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Discovery/DiscoveryActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ interface Props {
actionToResume: 'download'|'export'|'manifest';
selectedResources: any[];
};
systemPopupActivated: boolean;
onActionResumed: () => any
}

Expand Down Expand Up @@ -572,7 +573,7 @@ const DiscoveryActionBar = (props: Props) => {
</Popover>
<Modal
closable={false}
open={downloadStatus.message.active}
open={downloadStatus.message.active && !props.systemPopupActivated}
title={downloadStatus.message.title}
footer={(
<Button
Expand Down
1 change: 1 addition & 0 deletions src/Discovery/reduxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const ReduxDiscoveryActionBar = (() => {
const mapStateToProps = (state) => ({
user: state.user,
discovery: state.discovery,
systemPopupActivated: !!state.popups?.systemUseWarnPopup,
});

const mapDispatchToProps = (dispatch) => ({
Expand Down

0 comments on commit 3323ff8

Please sign in to comment.