extensions/xnat/src/components/XNATNavigation/XNATSubject.js
/**
   * onViewSubjectClick - Check if there are any unsaved annotations and warn
   * the user if there. Then route to subject view.
   *
   * @returns {null}
   */
Check if there are any unsaved annotations and warn
the user if there. Then route to subject view.

@returns {null}
Check if there are any unsaved annotations and warn the user if there . Then route to subject view . @returns { null }
onViewSubjectClick() {
    if (this.state.subjectViewActive) {
      return;
    }
    if (this.state.fetched) {
      this._routeToSubjectView();
    } else {
      this.fetchData().then(() => this._routeToSubjectView());
    }
  }
onViewSubjectClick ( ) { if ( this . state . subjectViewActive ) { return ; } if ( this . state . fetched ) { this . _routeToSubjectView ( ) ; } else { this . fetchData ( ) . then ( ( ) => this . _routeToSubjectView ( ) ) ; } }
onViewSubjectClick - Check if there are any unsaved annotations and warn
 the user if there.
onViewSubjectClick - Check if there are any unsaved annotations and warn the user if there .
// TODO -> Once we have tools we can check the regions // const unsavedRegions = getUnsavedRegions(); // if (unsavedRegions.hasUnsavedRegions) { //   const content = navigateConfirmationContent(unsavedRegions); //   awaitConfirmationDialog(content).then(result => { //     if (result === true) { //       this._routeToSubjectView(); //     } //   }); //   return; // } else { // }