extensions/xnat/src/components/XNATContourImportMenu/XNATContourImportMenu.js
/**
   * async onImportButtonClick - Exports the current mask to XNAT.
   *
   * @returns {null}
   */
async onImportButtonClick - Exports the current mask to XNAT.
@returns {null}
async onImportButtonClick - Exports the current mask to XNAT . @returns { null }
onImportButtonClick() {
    const { importList, selectedCheckboxes } = this.state;
    this._numCollectionsParsed = 0;
    this._numCollectionsToParse = 0;
    for (let i = 0; i < importList.length; i++) {
      if (selectedCheckboxes[i]) {
        this._numCollectionsToParse++;
      }
    }
    if (this._numCollectionsToParse === 0) {
      return;
    }
    this._updateImportingText('');
    this.setState({ importing: true });
    for (let i = 0; i < importList.length; i++) {
      if (selectedCheckboxes[i]) {
        this._importRoiCollection(importList[i]);
      }
    }
  }
onImportButtonClick ( ) { const { importList , selectedCheckboxes } = this . state ; this . _numCollectionsParsed = 0 ; this . _numCollectionsToParse = 0 ; for ( let i = 0 ; i < importList . length ; i ++ ) { if ( selectedCheckboxes [ i ] ) { this . _numCollectionsToParse ++ ; } } if ( this . _numCollectionsToParse === 0 ) { return ; } this . _updateImportingText ( '' ) ; this . setState ( { importing : true } ) ; for ( let i = 0 ; i < importList . length ; i ++ ) { if ( selectedCheckboxes [ i ] ) { this . _importRoiCollection ( importList [ i ] ) ; } } }
async onImportButtonClick - Exports the current mask to XNAT.
async onImportButtonClick - Exports the current mask to XNAT .