Skip to content

Commit

Permalink
Rename update methods to update method
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Mar 29, 2023
1 parent c2b9361 commit cb4d7ea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/GroupSystems/GroupSystems.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/components/GroupSystems/GroupSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit cb4d7ea

Please sign in to comment.