Skip to content

Commit

Permalink
fix/UI_of_assets_table
Browse files Browse the repository at this point in the history
Signed-off-by: Qxisylolo <[email protected]>
  • Loading branch information
Qxisylolo committed Oct 7, 2024
1 parent 58e1645 commit 79d6d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const dataSource: SavedObjectsType = {
namespaceType: 'agnostic',
hidden: false,
management: {
icon: 'apps', // todo: pending ux #2034
icon: 'database', // todo: pending ux #2034
defaultSearchField: 'title',
importableAndExportable: true,
getTitle(obj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ export class Table extends PureComponent<TableProps, TableState> {
sortable: false,
'data-test-subj': 'savedObjectsTableRowType',
render: (type: string, object: SavedObjectWithMetadata) => {
// eslint-disable-next-line
console.log('lalal', object);
return (
<EuiToolTip position="top" content={getSavedObjectLabel(type)}>
<EuiIcon
aria-label={getSavedObjectLabel(type)}
type={object.meta.icon || 'apps'}
type={object.type === 'config' ? 'gear' : object.meta.icon || 'app'}
size="s"
data-test-subj="objectType"
/>
Expand Down

0 comments on commit 79d6d42

Please sign in to comment.