Sha256: 263f7b9cc05d5017b5a2ecc31b638d08ea2281c14abf7e0931b5164fd6eaba78

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 Bytes

Contents

export const msgLevelClasses = level => {
  let tag;
  switch (level) {
    case 'notice':
      tag = 'info';
      break;
    case 'warning':
      tag = 'warning';
      break;
    case 'err':
      tag = 'danger';
      break;
    default:
      tag = 'default';
  }
  return `label label-${tag} result-filter-tag`;
};

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.2 webpack/src/Router/HostReports/ShowPage/Components/ReportLogs/helpers.js
foreman_host_reports-1.0.1 webpack/src/Router/HostReports/ShowPage/Components/ReportLogs/helpers.js
foreman_host_reports-1.0.0 webpack/src/Router/HostReports/ShowPage/Components/ReportLogs/helpers.js
foreman_host_reports-0.0.4 webpack/src/Router/HostReports/ShowPage/Components/ReportLogs/helpers.js
foreman_host_reports-0.0.3 webpack/src/Router/HostReports/ShowPage/Components/ReportLogs/helpers.js