Sha256: e16fa287d840cbb5217c72a3be78861651d6f5c68996b90a761ba235288b1e53

Contents?: true

Size: 1.03 KB

Versions: 79

Compression:

Stored size: 1.03 KB

Contents

import React from 'react';
import { cellWidth } from '@patternfly/react-table';
import { CheckCircleIcon } from '@patternfly/react-icons';
import { translate as __ } from 'foremanReact/common/I18n';
import { foremanUrl } from '../../../ForemanRhCloudHelpers';

export const rebootFormatter = ({ title: reboot }) => ({
  children: reboot ? <CheckCircleIcon color="green" /> : __('No'),
});

export const columns = [
  {
    sortKey: 'hostname',
    title: __('Hostname'),
    transforms: [cellWidth(20)],
  },
  {
    title: __('Recommendation'),
    transforms: [cellWidth(35)],
  },
  {
    title: __('Resolution'),
    transforms: [cellWidth(30)],
  },
  {
    title: __('Reboot Required'),
    transforms: [cellWidth(15)],
    cellTransforms: [rebootFormatter],
  },
];

export const REMEDIATIONS_PATH = foremanUrl('/insights_cloud/hits/resolutions');

export const JOB_INVOCATION_PATH = foremanUrl('/job_invocations/new');

export const REMEDIATIONS_API_KEY = 'INSIGHTS_REMEDIATIONS';

export const SUBMIT_RESOLUTIONS = 'SUBMIT_INSIGHTS_RESOLUTIONS';

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
foreman_rh_cloud-10.0.3 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-11.0.3 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.59 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-11.0.2 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-11.0.1 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-11.0.0 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.58 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-10.0.2 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.57 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-10.0.1 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.56 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.55 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.54 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.53 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.52 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-8.0.52 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-9.0.51 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-8.0.51 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-7.0.48 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
foreman_rh_cloud-7.0.47 webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js