mirror of
https://github.com/apache/superset.git
synced 2026-05-31 21:29:19 +00:00
feat(dbview): Add token request button to DuckDB and MotherDuck database modal (#27908)
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
This commit is contained in:
committed by
GitHub
parent
caad29b5b3
commit
08aaebbf7c
@@ -163,6 +163,8 @@ export const accessTokenField = ({
|
||||
validationErrors,
|
||||
db,
|
||||
isEditMode,
|
||||
default_value,
|
||||
description,
|
||||
}: FieldPropTypes) => (
|
||||
<ValidatedInput
|
||||
id="access_token"
|
||||
@@ -172,7 +174,13 @@ export const accessTokenField = ({
|
||||
value={db?.parameters?.access_token}
|
||||
validationMethods={{ onBlur: getValidation }}
|
||||
errorMessage={validationErrors?.access_token}
|
||||
placeholder={t('e.g. ********')}
|
||||
placeholder={t('Paste your access token here')}
|
||||
get_url={
|
||||
typeof default_value === 'string' && default_value.includes('https://')
|
||||
? default_value
|
||||
: null
|
||||
}
|
||||
description={description}
|
||||
label={t('Access token')}
|
||||
onChange={changeMethods.onParametersChange}
|
||||
/>
|
||||
|
||||
@@ -169,6 +169,8 @@ const DatabaseConnectionForm = ({
|
||||
db,
|
||||
key: field,
|
||||
field,
|
||||
default_value: parameters.properties[field]?.default,
|
||||
description: parameters.properties[field]?.description,
|
||||
isEditMode,
|
||||
sslForced,
|
||||
editNewDb,
|
||||
|
||||
@@ -149,8 +149,7 @@ const ModalHeader = ({
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{t('connecting to %(dbModelName)s.', { dbModelName: dbModel.name })}
|
||||
.
|
||||
{t('connecting to %(dbModelName)s', { dbModelName: dbModel.name })}.
|
||||
</a>
|
||||
</p>
|
||||
</StyledFormHeader>
|
||||
|
||||
Reference in New Issue
Block a user