renderConnectionError()

in components/src/base-configuration/base-configuration.js [347:375]


  renderConnectionError() {
    const {
      youTracks,
      connectionError
    } = this.state;

    return (
      <div>
        {
          this.renderYouTrackSelect()
        }
        <EmptyWidget
          face={EmptyWidgetFaces.ERROR}
          message={
            youTracks.length > 1
              ? i18n('Failed to load data from selected YouTrack')
              : connectionError
          }
        >
          <Link
            pseudo={true}
            onClick={this.removeWidget}
          >
            {i18n('Remove widget')}
          </Link>
        </EmptyWidget>
      </div>
    );
  }