Sha256: c41abc43d264529eeb2508863c85549eef058431ba823d38d50a566dc4c4b28b

Contents?: true

Size: 480 Bytes

Versions: 62

Compression:

Stored size: 480 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, canEdit } }
) =>
  cellFormatter(
    canEdit && (
      <ActionButton
        canEdit={canEdit}
        id={id}
        name={action}
        taskActions={taskActions}
        availableActions={value}
      />
    )
  );

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-10.0.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-10.0.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.2.3 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.2.2 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.2.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.2.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.1.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.0.4 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.1.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.0.2 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.0.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-8.3.3 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-9.0.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-8.2.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-8.1.4 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-8.3.2 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-8.3.1 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-8.1.3 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
foreman-tasks-8.3.0 webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js