Skip to content

Commit

Permalink
Add warning message for backup
Browse files Browse the repository at this point in the history
  • Loading branch information
callemand committed Oct 16, 2023
1 parent a10436b commit 22c6d6f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@
"setup": {
"title": "Node-RED configuration",
"description": "This service uses docker container. Enable Node-RED for deploying this container.\nLearn more on the node-red documentation page",
"descriptionBackup": "For the moment, Node-RED is not backup into Gladys Plus.\nIf you want a backup for Node-RED, please follow this <a href=\"https://community.gladysassistant.com/t/mini-tuto-backup-par-email-des-flows-node-red/8402\" target=\"_blank\" rel=\"noopener noreferrer\">docs</a>",
"error": "An error occured while starting Node-RED.",
"enableLabel": "Node-RED activation",
"enableNodeRed": "Enable",
Expand Down
2 changes: 1 addition & 1 deletion front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@
"setup": {
"title": "Configuration du service Node-RED",
"description": "Ce service utilise un container Docker. Activez Node-RED pour déployer ce container.\nPour en savoir plus, rendez-vous sur la page de documentation Node-RED.",
"descriptionBackup": "Pour le moment, Node-RED n'est pas sauvegardé dans Gladys Plus.\nSi vous souhaitez une sauvegarde pour Node-RED, veuillez suivre cette <a href=\"https://community.gladysassistant.com/t/mini-tuto-backup-par-email-des-flows-node-red/8402\" target=\"_blank\" rel=\"noopener noreferrer\">documentation</a>",
"error": "Une erreur s'est produite au démarrage du service Node-RED.",
"enableLabel": "Activation du service Node-RED",

"enableNodeRed": "Activer",
"disableNodeRed": "Désactiver",
"confirmDisableLabel": "Etes-vous sûr de vouloir désactiver Node-RED ?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ class SetupTab extends Component {
<MarkupText id="integration.nodeRed.setup.description" />
</p>

<div class="d-flex flex-row flex-wrap justify-content-between mr-0 ml-0 alert alert-warning">
<div class={cx(style.textAlignMiddleContainer)}>
<span class={cx(style.textAlignMiddle)}>
<MarkupText id="integration.nodeRed.setup.descriptionBackup" />
</span>
</div>
</div>

<CheckStatus
nodeRedEnabled={nodeRedEnabled}
nodeRedExist={nodeRedExist}
Expand Down

0 comments on commit 22c6d6f

Please sign in to comment.