Sha256: dc7427a4fda04c898926718c5b343928fac57818a72010d465aabbbf8334fbfb

Contents?: true

Size: 507 Bytes

Versions: 148

Compression:

Stored size: 507 Bytes

Contents

import React from 'react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';

export const subscriptionNameFormatter = (value, { rowData }) => {
  let cellContent;

  if (rowData.collapsible) {
    cellContent = (rowData.name);
  } else {
    cellContent = (
      <Link to={urlBuilder('subscriptions', '', rowData.id)}>{rowData.name}</Link>
    );
  }

  return (
    <td>
      {cellContent}
    </td>
  );
};

export default subscriptionNameFormatter;

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
katello-3.15.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.15.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.15.0.rc1.3 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.15.0.rc1.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.15.0.rc1.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.15.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.14.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.14.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js