Skip to content

Commit

Permalink
fix: double icons in display name column on package systems table (#1183
Browse files Browse the repository at this point in the history
)

* fix: double icons in  display name column on package systems table

* chore: remove tags column defs from package systems table
  • Loading branch information
mkholjuraev authored May 22, 2024
1 parent bd177e8 commit 7f7bc89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/SmartComponents/Systems/SystemListAssets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('SystemListAssets.js', () => {
});

it('Should call createUpgradableColumn on Status renderFunc with correct params', () => {
packageSystemsColumns[6].renderFunc('testValue');
packageSystemsColumns[4].renderFunc('testValue');
expect(createUpgradableColumn).toHaveBeenCalledWith('testValue');
});

Expand Down
13 changes: 0 additions & 13 deletions src/SmartComponents/Systems/SystemsListAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,6 @@ export const advisorySystemsColumns = () => [
];

export const packageSystemsColumns = [
{
key: 'display_name',
title: 'Name',
composed: ['facts.os_release', 'display_name'],
props: {
width: 40
}
},
{
key: 'tags',
title: 'Tags',
props: { width: 10, isStatic: true }
},
{
key: 'os',
title: 'OS',
Expand Down
4 changes: 2 additions & 2 deletions src/Utilities/SystemHelpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ describe('createSystemsSortBy,', () => {

it('should translate updated parameter while having last upload', () => {
expect(createSystemsSortBy('updated', 'ASC', true)).toEqual(
'display_name'
'os'
);
expect(createSystemsSortBy('updated', 'DESC', true)).toEqual(
'-display_name'
'-os'
);
});
});
Expand Down

0 comments on commit 7f7bc89

Please sign in to comment.