Skip to content

Commit

Permalink
fix mskcc study usage acknowledgement
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Oct 17, 2024
1 parent 15011e0 commit 24aab30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 27 deletions.
31 changes: 7 additions & 24 deletions src/appShell/App/usageAgreements/StudyAgreement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ export const StudyAgreement: React.FunctionComponent<{}> = function({}) {
<UsageAgreement
alertMessage={
<>
<span style={{ color: 'red' }}>WARNING:</span>
&nbsp;All URLs in this website are private - do NOT include
in manuscripts.
<span style={{ color: 'red' }}>Attention:</span>
&nbsp;Please read and follow the rules about usage of MSK
clinical sequencing data in manuscripts.
</>
}
dismissButtonText={'Acknowledge'}
persistenceKey={STUDY_VIEW_WARNING_PERSISTENCE_KEY}
expirationInDays={90}
clauses={[
Expand All @@ -55,32 +56,14 @@ export const StudyAgreement: React.FunctionComponent<{}> = function({}) {
with any questions about getting the data transferred to the
public cBioPortal.
</>,
<>
When adding a link to a cBioPortal cohort in a manuscript,{' '}
<strong>
I will not link to this private portal (
{window.location.hostname})
</strong>
, but will instead link to this study on the public
cBioPortal (
<a href="https://www.cbioportal.org/" target="_blank">
cbioportal.org
</a>
). Contact{' '}
<a href="mailto:[email protected]">
[email protected]
</a>{' '}
with any questions about getting the data transferred to the
public cBioPortal.
</>,
<>
I have read the{' '}
<a
href="https://cmo.mskcc.org/index.php/msk-impact/"
href="https://mskcc.sharepoint.com/sites/pub-ResearchDG/SitePages/Home.aspx?ga=1"
target="_blank"
>
MSK-IMPACT Data publication guidelines (intranet/VPN
only)
I have read the MSK-IMPACT Research Data Governance
publication guidelines.
</a>
.
</>,
Expand Down
6 changes: 3 additions & 3 deletions src/shared/components/UsageAgreement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface IUsageAgreement {
clauses: JSX.Element[];
useCheckboxes?: boolean;
expirationInDays?: number;
dismissButtonText?: string;
}

@observer
Expand Down Expand Up @@ -68,7 +69,6 @@ export default class UsageAgreement extends React.Component<
'true',
this.expirationInSeconds
);
//localStorage.setItem(this.props.persistenceKey, 'true');
}

@autobind
Expand Down Expand Up @@ -111,7 +111,7 @@ export default class UsageAgreement extends React.Component<
bsSize="xsmall"
onClick={this.handleModalShow}
>
Dismiss
{this.props.dismissButtonText || 'Dismiss'}
</Button>
</ButtonGroup>
</Alert>
Expand All @@ -122,7 +122,7 @@ export default class UsageAgreement extends React.Component<
container={this}
aria-labelledby="contained-modal-title"
>
<Modal.Header closeButton>
<Modal.Header>
<Modal.Title
id="contained-modal-title"
style={{ textAlign: 'center' }}
Expand Down

0 comments on commit 24aab30

Please sign in to comment.