diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap b/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap index 914660040f2b..c501b2c7457b 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap @@ -203,7 +203,6 @@ exports[`SavedObjectsTable should render normally 1`] = ` >
{ onRefresh: () => {}, totalCount: 4, filteredCount: 2, - title: '', }; const component = shallow(
); @@ -48,21 +47,3 @@ describe('Header', () => { expect(component).toMatchSnapshot(); }); }); - -describe('Header - workspace enabled', () => { - it('should hide `Import` button for application home state', () => { - const props = { - onExportAll: () => {}, - onImport: () => {}, - onRefresh: () => {}, - totalCount: 4, - filteredCount: 2, - hideImport: true, - title: 'Saved Objectes', - }; - - const component = shallow(
); - - expect(component.find('EuiButtonEmpty[data-test-subj="importObjects"]').exists()).toBe(false); - }); -}); diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.tsx index 2e19f897342c..a22e349d5240 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.tsx @@ -45,15 +45,11 @@ export const Header = ({ onImport, onRefresh, filteredCount, - hideImport, - title, }: { onExportAll: () => void; onImport: () => void; onRefresh: () => void; filteredCount: number; - hideImport?: boolean; - title: string; }) => ( @@ -86,21 +82,19 @@ export const Header = ({ /> - {!hideImport && ( - - - - - - )} + + + + + {this.renderFlyout()} @@ -1006,8 +1003,6 @@ export class SavedObjectsTable extends Component