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 = {
|
const FIELD_TEXT_MAP = {
|
||||||
account: {
|
account: {
|
||||||
helpText: t(
|
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: {
|
warehouse: {
|
||||||
placeholder: t('e.g. compute_wh'),
|
placeholder: t('e.g. compute_wh'),
|
||||||
|
@ -667,12 +667,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
|||||||
|
|
||||||
const getPlaceholder = (field: string) => {
|
const getPlaceholder = (field: string) => {
|
||||||
if (field === 'database') {
|
if (field === 'database') {
|
||||||
switch (db?.engine) {
|
return t('e.g. world_population');
|
||||||
case Engines.Snowflake:
|
|
||||||
return t('e.g. xy12345.us-east-2.aws');
|
|
||||||
default:
|
|
||||||
return t('e.g. world_population');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user