File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,19 +20,26 @@ import AlignmentExporter from './alignment_exporter';
2020class Report extends Component {
2121 constructor ( props ) {
2222 super ( props ) ;
23- this . fetchResults ( ) ;
23+ this . init ( ) ;
2424 this . getDatabaseListString = this . getDatabaseListString . bind ( this ) ;
2525 this . toggleShowDatabases = this . toggleShowDatabases . bind ( this ) ;
2626 this . renderToggleDatabasesList = this . renderToggleDatabasesList . bind ( this ) ;
2727 this . maxDatabasesStringLength = 200 ;
28+ this . prepareAlignmentOfSelectedHits = this . prepareAlignmentOfSelectedHits . bind ( this ) ;
29+ this . prepareAlignmentOfAllHits = this . prepareAlignmentOfAllHits . bind ( this ) ;
30+ this . setStateFromJSON = this . setStateFromJSON . bind ( this ) ;
31+ }
2832
33+ init ( ) {
34+ this . fetchResults ( ) ;
2935 // Properties below are internal state used to render results in small
3036 // slices (see updateState).
3137 this . numUpdates = 0 ;
3238 this . nextQuery = 0 ;
3339 this . nextHit = 0 ;
3440 this . nextHSP = 0 ;
3541 this . maxHSPs = 3 ; // max HSPs to render in a cycle
42+
3643 this . state = {
3744 search_id : '' ,
3845 seqserv_version : '' ,
@@ -50,10 +57,8 @@ class Report extends Component {
5057 allQueriesLoaded : false ,
5158 cloud_sharing_enabled : false ,
5259 } ;
53- this . prepareAlignmentOfSelectedHits = this . prepareAlignmentOfSelectedHits . bind ( this ) ;
54- this . prepareAlignmentOfAllHits = this . prepareAlignmentOfAllHits . bind ( this ) ;
55- this . setStateFromJSON = this . setStateFromJSON . bind ( this ) ;
5660 }
61+
5762 /**
5863 * Fetch results.
5964 */
You can’t perform that action at this time.
0 commit comments