Sha256: 66032ef15d9d46a96f6bbedcf7e3cca153ff307e5c136c9ce1ea325e099a71eb

Contents?: true

Size: 856 Bytes

Versions: 35

Compression:

Stored size: 856 Bytes

Contents

const actionResolver = (rowData, { _rowIndex }) => {
  // don't show actions for the expanded parts
  if (rowData.parent || rowData.compoundParent || rowData.noactions) return null;

  // printing to the console for now until these are hooked up
  /* eslint-disable no-console */
  return [
    {
      title: 'Publish and Promote',
      onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`),
    },
    {
      title: 'Promote',
      onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`),
    },
    {
      title: 'Copy',
      onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`),
    },
    {
      title: 'Delete',
      onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`),
    },
  ];
  /* eslint-enable no-console */
};

export default actionResolver;

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
katello-3.18.5 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.4 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.3.1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.3 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.2.1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.2 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.17.3 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.1.1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.17.2 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.0 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.17.1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.16.2 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.0.rc2.1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.0.rc2 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.17.0 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.18.0.rc1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.17.0.rc2.2 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.17.0.rc2.1 webpack/scenes/ContentViews/Table/actionResolver.js
katello-3.16.1.2 webpack/scenes/ContentViews/Table/actionResolver.js