diff --git a/packages/content-management/table_list/src/table_list_view.tsx b/packages/content-management/table_list/src/table_list_view.tsx index 33d7d2f8bc27a..01bd83c8b7f15 100644 --- a/packages/content-management/table_list/src/table_list_view.tsx +++ b/packages/content-management/table_list/src/table_list_view.tsx @@ -51,6 +51,7 @@ export interface Props({ tableListTitle, + tableListDescription, entityName, entityNamePlural, initialFilter: initialQuery, @@ -592,6 +594,7 @@ function TableListViewComp({ {tableListTitle}} + description={tableListDescription} rightSideItems={[ renderCreateButton() ?? , ...additionalRightSideActions?.slice(0, 2), diff --git a/src/plugins/files_management/public/app.tsx b/src/plugins/files_management/public/app.tsx index 4e4e8e3259a0d..2ce0a09ae3893 100644 --- a/src/plugins/files_management/public/app.tsx +++ b/src/plugins/files_management/public/app.tsx @@ -29,6 +29,8 @@ export const App: FunctionComponent = () => { return ( <> + tableListTitle={i18nTexts.tableListTitle} + tableListDescription={i18nTexts.tableListDescription} titleColumnName={i18nTexts.titleColumnName} emptyPrompt={} entityName={i18nTexts.entityName} @@ -59,7 +61,6 @@ export const App: FunctionComponent = () => { initialFilter="" initialPageSize={50} listingLimit={1000} - tableListTitle={i18nTexts.tableListTitle} onClickTitle={({ attributes }) => setSelectedFile(attributes as unknown as FileJSON)} deleteItems={async (items) => { await filesClient.bulkDelete({ ids: items.map(({ id }) => id) }); diff --git a/src/plugins/files_management/public/i18n_texts.ts b/src/plugins/files_management/public/i18n_texts.ts index f8f653d6fa31d..c5f4956af372f 100644 --- a/src/plugins/files_management/public/i18n_texts.ts +++ b/src/plugins/files_management/public/i18n_texts.ts @@ -10,10 +10,13 @@ import { FileStatus } from '@kbn/files-plugin/common'; import { i18n } from '@kbn/i18n'; export const i18nTexts = { + tableListTitle: i18n.translate('filesManagement.table.title', { defaultMessage: 'Files' }), + tableListDescription: i18n.translate('filesManagement.table.description', { + defaultMessage: 'Manage files stored in Kibana.', + }), titleColumnName: i18n.translate('filesManagement.table.titleColumnName', { defaultMessage: 'Name', }), - tableListTitle: i18n.translate('filesManagement.table.title', { defaultMessage: 'Files' }), entityName: i18n.translate('filesManagement.entityName.title', { defaultMessage: 'file' }), retry: i18n.translate('filesManagement.button.retry', { defaultMessage: 'Retry',