Skip to content
Snippets Groups Projects
Commit e7fc3f13 authored by Romain CREY's avatar Romain CREY
Browse files

WIP: error in konnector launch

parent 2c738474
No related branches found
No related tags found
3 merge requests!28Merge fix from dev,!27Dev,!25Features/us150 review of konnectors
......@@ -13,6 +13,7 @@ import { Trigger } from 'doctypes'
import Lottie from 'react-lottie'
import * as loadingData from 'assets/anims/bounceloading.json'
import StyledButton from 'components/CommonKit/Button/StyledButton'
const loadingOptions = {
loop: true,
......@@ -85,8 +86,29 @@ const KonnectorLaunch: React.FC<KonnectorLaunchProps> = ({
) : (
<>
<div>
{/* // Add success when state <> ERROR_EVENT
// Add Error when state = ERROR_EVENT */}
{state === ERROR_EVENT ? (
<div>
{t('KONNECTORCONFIG.ERROR_ACCOUNT_CREATION')}
<StyledButton
type="button"
color="primary"
onClick={handleClick}
>
<div>{t('KONNECTORCONFIG.OK')}</div>
</StyledButton>
</div>
) : (
<div>
{t('KONNECTORCONFIG.SUCCESS')}
<StyledButton
type="button"
color="primary"
onClick={handleClick}
>
<div>{t('KONNECTORCONFIG.OK')}</div>
</StyledButton>
</div>
)}
</div>
</>
)}
......
......@@ -125,7 +125,9 @@
"NOT_INSTALLED": "Le connecteur n'est pas installé. Veuillez l'installer en cliquant sur le bouton ci-dessous.",
"ERROR_NO_LOGIN_PASSWORD": "Identifiant et mot de passe requis",
"ERROR_ACCOUNT_CREATION": "Une erreur est survenue, veuillez essayer de nouveau",
"ERROR_LOGIN_FAILED": "Identifiants invalides"
"ERROR_LOGIN_FAILED": "Identifiants invalides",
"SUCCESS": "Félicitations, la connexion a été effectuée",
"OK": "Ok"
},
"INDICATOR": {
"DISPLAY_OTHER_FLUID": "Voir",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment