mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
fix(DB Connection): Update placeholder values for Snowflake connection (#25119)
This commit is contained in:
parent
00550d7c02
commit
46a0a6e08a
@ -24,9 +24,9 @@ import { FieldPropTypes } from '.';
|
||||
const FIELD_TEXT_MAP = {
|
||||
account: {
|
||||
helpText: t(
|
||||
'Copy the account name of that database you are trying to connect to.',
|
||||
'Copy the identifier of the account you are trying to connect to.',
|
||||
),
|
||||
placeholder: t('e.g. world_population'),
|
||||
placeholder: t('e.g. xy12345.us-east-2.aws'),
|
||||
},
|
||||
warehouse: {
|
||||
placeholder: t('e.g. compute_wh'),
|
||||
|
@ -667,13 +667,8 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
|
||||
const getPlaceholder = (field: string) => {
|
||||
if (field === 'database') {
|
||||
switch (db?.engine) {
|
||||
case Engines.Snowflake:
|
||||
return t('e.g. xy12345.us-east-2.aws');
|
||||
default:
|
||||
return t('e.g. world_population');
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user