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-4.2.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.0.2.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.2.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.0.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.18.4 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.0.1.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.18.3.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.0.rc2.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.0.rc2.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.0.1.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-3.18.3 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.0.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.0.rc1.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.1.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.0.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js
katello-4.0.0.rc3.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js