chore: move passwords needed message (#12002)

This commit is contained in:
Beto Dealmeida
2020-12-10 11:47:54 -08:00
committed by GitHub
parent 3a6254184a
commit 9e07e10055
4 changed files with 31 additions and 27 deletions

View File

@@ -36,6 +36,12 @@ import DatabaseModal from './DatabaseModal';
import { DatabaseObject } from './types';
const PAGE_SIZE = 25;
const PASSWORDS_NEEDED_MESSAGE = t(
'The passwords for the databases below are needed in order to ' +
'import them. Please note that the "Secure Extra" and "Certificate" ' +
'sections of the database configuration are not present in export ' +
'files, and should be added manually after the import if they are needed.',
);
interface DatabaseDeleteObject extends DatabaseObject {
chart_count: number;
@@ -431,12 +437,7 @@ function DatabaseList({ addDangerToast, addSuccessToast }: DatabaseListProps) {
resourceName="database"
resourceLabel={t('database')}
icon={<StyledIcon name="database" />}
passwordsNeededMessage={t(
'The passwords for the databases below are needed in order to ' +
'import them. Please note that the "Secure Extra" and "Certificate" ' +
'sections of the database configuration are not present in export ' +
'files, and should be added manually after the import if they are needed.',
)}
passwordsNeededMessage={PASSWORDS_NEEDED_MESSAGE}
addDangerToast={addDangerToast}
addSuccessToast={addSuccessToast}
onModelImport={handleDatabaseImport}