diff --git a/lib/foreman_tasks/engine.rb b/lib/foreman_tasks/engine.rb index 6d69b1fbc..f5bcc7585 100644 --- a/lib/foreman_tasks/engine.rb +++ b/lib/foreman_tasks/engine.rb @@ -18,7 +18,7 @@ class Engine < ::Rails::Engine initializer 'foreman_tasks.register_plugin', :before => :finisher_hook do |_app| Foreman::Plugin.register :"foreman-tasks" do - requires_foreman '>= 3.7.0' + requires_foreman '>= 3.9' divider :top_menu, :parent => :monitor_menu, :last => true, :caption => N_('Foreman Tasks') menu :top_menu, :tasks, :url_hash => { :controller => 'foreman_tasks/tasks', :action => :index }, diff --git a/webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js b/webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js index 261b0887d..d8e81dafc 100644 --- a/webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js +++ b/webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js @@ -1,10 +1,4 @@ import React from 'react'; -import { translate as __ } from 'foremanReact/common/I18n'; import TasksTablePage from './'; -export const TasksIndexPage = props => { - const getBreadcrumbs = () => ({ - breadcrumbItems: [{ caption: __('Tasks'), url: `/foreman_tasks/tasks` }], - }); - return ; -}; +export const TasksIndexPage = props => ; diff --git a/webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js b/webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js index 33044e76d..eee7b81a3 100644 --- a/webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js +++ b/webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js @@ -123,7 +123,7 @@ TasksTablePage.propTypes = { selectAllRows: PropTypes.func.isRequired, results: PropTypes.array.isRequired, getTableItems: PropTypes.func.isRequired, - getBreadcrumbs: PropTypes.func.isRequired, + getBreadcrumbs: PropTypes.func, actionName: PropTypes.string, status: PropTypes.oneOf(Object.keys(STATUS)), history: PropTypes.object.isRequired, @@ -143,6 +143,7 @@ TasksTablePage.propTypes = { TasksTablePage.defaultProps = { perPage: 20, allRowsSelected: false, + getBreadcrumbs: () => null, actionName: '', status: STATUS.PENDING, selectedRows: [],