-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use TablePaginationControls for patient cohort nav #139
Use TablePaginationControls for patient cohort nav #139
Conversation
@@ -230,6 +234,29 @@ export default class PatientViewPage extends React.Component<IPatientViewPagePro | |||
|
|||
} | |||
|
|||
private getURL(caseId:string='', studyId:string='', cohort:string[]=[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe buildUrl would be better name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
@@ -247,6 +275,40 @@ export default class PatientViewPage extends React.Component<IPatientViewPagePro | |||
}); | |||
} | |||
|
|||
if (this.patientIdsInCohort && this.patientIdsInCohort.length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not put this in state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could do that too. I think I have it like this because the other URL parameters (studyId, patientId) are handled like this
nextPageDisabled={indexInCohort === this.patientIdsInCohort.length-1} | ||
lastPageDisabled={indexInCohort === this.patientIdsInCohort.length-1} | ||
onFirstPageClick={() => | ||
window.location.href = this.getURL( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
next week lets try to handle this without page refresh. that's the holy grail and it shouldn't be too hard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <abeshoua@mskcc.org>
ef6f342
to
3a69ef1
Compare
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Small typescript changes, and expose more to import
Checks
can be automatically added by git if you run the
git-commit
command withthe
-s
option)