function getReportTypePresentation()

in widgets/distribution-reports/src/app/distribution-report-types.js [29:41]


function getReportTypePresentation(report) {
  if (report.$type === BackendTypes.get().IssuePerProjectReport) {
    return i18n('Project');
  }
  if (report.$type === BackendTypes.get().IssuePerAssigneeReport) {
    return i18n('Assignee');
  }
  const ordinateForPresentation = report.yaxis || report.xaxis;
  return (
    ordinateForPresentation && ordinateForPresentation.field &&
      ordinateForPresentation.field.presentation
  ) || '';
}