Skip to content

Commit

Permalink
[DUOS-1852][DUOS-1868][risk=no] hide alert if in readOnly mode. (#1602)
Browse files Browse the repository at this point in the history
* [DUOS-1852] hide alert if in readOnly mode.

* [DUOS-1868] hide alert if in readOnly mode.
  • Loading branch information
lu-c authored Jun 10, 2022
1 parent d4f5a74 commit 2de576b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function MultiDatasetVoteSlab(props) {
h(Alert, {
title: 'Voting is disabled since not all elections are open.',
type: 'danger',
isRendered: !adminPage && !allOpenElections
isRendered: !adminPage && !allOpenElections && !readOnly
}),
h(CollectionSubmitVoteBox, {
question: 'Should data access be granted to this applicant?',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dar_collection_review/MultiDatasetVotingTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function MultiDatasetVotingTab(props) {
type: 'danger',
title: missingLibraryCardMessage,
id: 'missing_lc',
isRendered: dataAccessApprovalDisabled()
isRendered: dataAccessApprovalDisabled() && !readOnly
}),
div({style: styles.slabs}, [
h(ResearchProposalVoteSlab, {
Expand Down

0 comments on commit 2de576b

Please sign in to comment.