in packages/lib/reporting-components/base-configuration/base-configuration.js [377:418]
renderBaseConfigurationOptions() {
const {
errorMessage,
selectedReport,
reportSettingsLoadingError,
selectedReportIsValid
} = this.state;
const reportWithSettings =
ReportModel.hasSettings(selectedReport)
? selectedReport
: undefined;
return (
<ConfigurationForm
warning={errorMessage}
isInvalid={!!errorMessage || !selectedReport || !selectedReportIsValid}
isLoading={this.state.isLoading}
panelControls={this.renderRefreshPeriod()}
onSave={this.submitForm}
onCancel={this.props.onCancel}
>
{
this.renderYouTrackSelect()
}
{
this.renderReportsSettings(reportWithSettings)
}
{
!reportWithSettings &&
(
reportSettingsLoadingError
? (
<div className="ring-form__group">
{reportSettingsLoadingError}
</div>
) : <LoaderInline/>
)
}
</ConfigurationForm>
);
}