Sha256: a4b5fb1ab713a021e9f9224228c2ed4afdfefd6485202b1b9ad07ec9f1175f14

Contents?: true

Size: 410 Bytes

Versions: 14

Compression:

Stored size: 410 Bytes

Contents

import React from 'react';
import { cellFormatter } from 'foremanReact/components/common/table';
import { ActionButton } from '../../common/ActionButtons/ActionButton';

export const actionCellFormatter = taskActions => (
  value,
  { rowData: { action, id } }
) =>
  cellFormatter(
    <ActionButton
      id={id}
      name={action}
      taskActions={taskActions}
      availableActions={value}
    />
  );

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
foreman-tasks-1.1.3 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-1.1.2 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-2.0.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-2.0.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-1.2.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-1.1.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-1.1.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-1.0.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js