Sha256: 7568688afaed3a32de12d6f3ad22972edd24efb0c95dbe8e57a8fb60f61455d6

Contents?: true

Size: 402 Bytes

Versions: 11

Compression:

Stored size: 402 Bytes

Contents

import { selectAPIResponse } from 'foremanReact/redux/API/APISelectors';
import { JOB_INVOCATION_KEY } from './JobInvocationConstants';

export const selectItems = state =>
  selectAPIResponse(state, JOB_INVOCATION_KEY);

export const selectTask = state => selectAPIResponse(state, 'GET_TASK');

export const selectTaskCancelable = state =>
  selectTask(state).available_actions?.cancellable || false;

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_remote_execution-13.2.7 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-14.0.2 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-14.0.1 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-13.2.6 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-14.0.0 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-13.2.5 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-13.2.4 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-13.2.3 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-13.2.2 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-13.2.1 webpack/JobInvocationDetail/JobInvocationSelectors.js
foreman_remote_execution-13.2.0 webpack/JobInvocationDetail/JobInvocationSelectors.js