in widgets/time-tracking-report/src/app/content.js [84:106]
renderError(error) {
if (error === ReportModel.ErrorTypes.NO_YOUTRACK) {
return this.renderFatalError(
i18n('Cannot find YouTrack installation')
);
}
if (error === ReportModel.ErrorTypes.NO_REPORT) {
return this.renderReportError(
i18n('Cannot find any report')
);
}
if (error === ReportModel.ErrorTypes.CANNOT_LOAD_REPORT) {
return this.renderReportError(i18n('Cannot load selected report'));
}
if (error === ReportModel.ErrorTypes.NO_PERMISSIONS_FOR_REPORT) {
return this.renderReportError(
i18n('You don\'t have access to the report')
);
}
return this.renderFatalError(
i18n('Oops... Something went wrong =(')
);
}