fix: Update display string when sqlalchemy doc config us changed (#13219)

This commit is contained in:
Hugh A. Miles II
2021-02-18 17:04:13 -05:00
committed by GitHub
parent b34c863825
commit 85d1e80544
3 changed files with 4 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ interface RootState {
common: {
conf: {
SQLALCHEMY_DOCS_URL: string;
SQLALCHEMY_DISPLAY_TEXT: string;
};
};
messageToast: Array<Object>;
@@ -417,7 +418,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
target="_blank"
rel="noopener noreferrer"
>
{t('SQLAlchemy docs')}
{conf?.SQLALCHEMY_DISPLAY_TEXT ?? ''}
</a>
{t(' for more information on how to structure your URI.')}
</div>