extensions/xnat/src/components/XNATSegmentationImportMenu/XNATSegmentationImportMenu.js
/**
   * async onImportButtonClick - Import the mask after a possible overwrite confirmation.
   *
   * @returns {null}
   */
async onImportButtonClick - Import the mask after a possible overwrite confirmation.
@returns {null}
async onImportButtonClick - Import the mask after a possible overwrite confirmation . @returns { null }
async onImportButtonClick() {
    const { importList, scanSelected, segmentationSelected } = this.state;
    const scan = importList[scanSelected];
    const firstImageId = _getFirstImageIdFromSeriesInstanceUid(
      scan.referencedSeriesInstanceUid
    );
    if (this._hasExistingMaskData(firstImageId)) {
      console.log('TODO: Currently overwrite existing data.');
    }
    this._updateImportingText('');
    this.setState({ importing: true });
    this._importRoiCollection(scan.segmentations[segmentationSelected], scan);
  }
async onImportButtonClick ( ) { const { importList , scanSelected , segmentationSelected } = this . state ; const scan = importList [ scanSelected ] ; const firstImageId = _getFirstImageIdFromSeriesInstanceUid ( scan . referencedSeriesInstanceUid ) ; if ( this . _hasExistingMaskData ( firstImageId ) ) { console . log ( 'TODO: Currently overwrite existing data.' ) ; } this . _updateImportingText ( '' ) ; this . setState ( { importing : true } ) ; this . _importRoiCollection ( scan . segmentations [ segmentationSelected ] , scan ) ; }
async onImportButtonClick - Import the mask after a possible overwrite confirmation.
async onImportButtonClick - Import the mask after a possible overwrite confirmation .
// confirmed = await awaitConfirmationDialog(overwriteConfirmationContent); // if (!confirmed) { //   return; // }