fix(GoogleCloud): Fix Cloud Healthcare file upload buttons (#658)

fix #654
This commit is contained in:
Erik Ziegler 2019-07-11 23:32:49 +02:00 committed by GitHub
parent 2a281da19f
commit d4aee36542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,27 +234,27 @@ class StudyListWithData extends Component {
console.warn(this.state.studies); console.warn(this.state.studies);
const studyList = ( const studyList = (
<Dropzone onDrop={onDrop}> <div className="paginationArea">
{({ getRootProps, getInputProps }) => ( {this.state.studies ? (
<div {...getRootProps()} className="paginationArea"> <StudyList
{this.state.studies ? ( studies={this.state.studies}
<StudyList studyListFunctionsEnabled={false}
studies={this.state.studies} onImport={this.onImport}
studyListFunctionsEnabled={false} onSelectItem={this.onSelectItem}
onImport={this.onImport} pageSize={this.rowsPerPage}
onSelectItem={this.onSelectItem} defaultSort={StudyListWithData.defaultSort}
pageSize={this.rowsPerPage} studyListDateFilterNumDays={
defaultSort={StudyListWithData.defaultSort} StudyListWithData.studyListDateFilterNumDays
studyListDateFilterNumDays={ }
StudyListWithData.studyListDateFilterNumDays onSearch={this.onSearch}
} >
onSearch={this.onSearch} {healthCareApiButtons}
> {healthCareApiWindows}
{healthCareApiButtons} </StudyList>
{healthCareApiWindows} ) : (
</StudyList> <Dropzone onDrop={onDrop}>
) : ( {({ getRootProps, getInputProps }) => (
<div className={'drag-drop-instructions'}> <div {...getRootProps()} className={'drag-drop-instructions'}>
<h3> <h3>
{this.props.t( {this.props.t(
'Drag and Drop DICOM files here to load them in the Viewer' 'Drag and Drop DICOM files here to load them in the Viewer'
@ -266,9 +266,9 @@ class StudyListWithData extends Component {
<input {...getInputProps()} style={{ display: 'none' }} /> <input {...getInputProps()} style={{ display: 'none' }} />
</div> </div>
)} )}
</div> </Dropzone>
)} )}
</Dropzone> </div>
); );
return ( return (
<> <>