diff --git a/src/components/GroupSystems/GroupSystems.cy.js b/src/components/GroupSystems/GroupSystems.cy.js index 8d617bc9c..703d79f41 100644 --- a/src/components/GroupSystems/GroupSystems.cy.js +++ b/src/components/GroupSystems/GroupSystems.cy.js @@ -39,7 +39,7 @@ import _ from 'lodash'; const GROUP_NAME = 'foobar'; const ROOT = 'div[id="group-systems-table"]'; -const TABLE_HEADERS = ['Name', 'Tags', 'OS', 'Update methods', 'Last seen']; +const TABLE_HEADERS = ['Name', 'Tags', 'OS', 'Update method', 'Last seen']; const SORTABLE_HEADERS = ['Name', 'OS', 'Last seen']; const DEFAULT_ROW_COUNT = 50; diff --git a/src/components/GroupSystems/GroupSystems.js b/src/components/GroupSystems/GroupSystems.js index d83d0362c..942aece8c 100644 --- a/src/components/GroupSystems/GroupSystems.js +++ b/src/components/GroupSystems/GroupSystems.js @@ -36,10 +36,10 @@ const prepareColumns = (initialColumns) => { // hides the "groups" column const columns = initialColumns.filter(({ key }) => key !== 'groups'); - // additionally insert the "update methods" column + // additionally insert the "update method" column columns.splice(columns.length - 1 /* must be penultimate */, 0, { key: 'update_method', - title: 'Update methods', + title: 'Update method', sortKey: 'update_method', transforms: [fitContent], renderFunc: (value, hostId, systemData) => diff --git a/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.cy.js b/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.cy.js index 9fad84116..f585a2f6c 100644 --- a/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.cy.js +++ b/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.cy.js @@ -23,7 +23,7 @@ import { import { getStore } from '../../../store'; import AddSystemsToGroupModal from './AddSystemsToGroupModal'; -const TABLE_HEADERS = ['Name', 'Group', 'Tags', 'Update methods', 'OS', 'Last seen']; +const TABLE_HEADERS = ['Name', 'Group', 'Tags', 'Update method', 'OS', 'Last seen']; const ALERT = '[data-ouia-component-type="PF4/Alert"]'; diff --git a/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.js b/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.js index 4a70f424e..10dbafac0 100644 --- a/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.js +++ b/src/components/InventoryGroups/Modals/AddSystemsToGroupModal.js @@ -21,10 +21,10 @@ import ConfirmSystemsAddModal from './ConfirmSystemsAddModal'; export const prepareColumns = (initialColumns) => { const columns = initialColumns; - // additionally insert the "update methods" column + // additionally insert the "update method" column columns.splice(columns.length - 2 /* must be the 3rd col from the end */, 0, { key: 'update_method', - title: 'Update methods', + title: 'Update method', sortKey: 'update_method', transforms: [fitContent], renderFunc: (value, hostId, systemData) =>