Sha256: 53f243f68ac17877310447988e4a105d3443933af8d6bc06993d94011def065b
Contents?: true
Size: 966 Bytes
Versions: 1
Compression:
Stored size: 966 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import TasksTablePage from './'; export const SubTasksPage = props => { const parentTaskID = props.match.params.id; const getBreadcrumbs = actionName => ({ breadcrumbItems: [ { caption: __('Tasks'), url: `/foreman_tasks/tasks` }, { caption: actionName, url: `/foreman_tasks/tasks/${parentTaskID}`, }, { caption: __('Sub tasks') }, ], }); const createHeader = actionName => actionName ? sprintf(__('Sub tasks of %s'), actionName) : __('Sub tasks'); return ( <TasksTablePage getBreadcrumbs={getBreadcrumbs} parentTaskID={parentTaskID} createHeader={createHeader} {...props} /> ); }; SubTasksPage.propTypes = { match: PropTypes.shape({ params: PropTypes.object, }), }; SubTasksPage.defaultProps = { match: { params: {}, }, };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman-tasks-1.1.0 | webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js |