From 40388ace53e6d0929d698f4ba66dd9a08c7c4756 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Thu, 2 May 2024 10:42:12 +0200
Subject: [PATCH] update popups

---
 .../Functionalities/custom_popup.md             | 17 +++++++++++------
 .../Functionalities/partners_issues.md          | 10 +++++++++-
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/docs/ecolyo-agent/Functionalities/custom_popup.md b/docs/ecolyo-agent/Functionalities/custom_popup.md
index 8720f73..a66df48 100644
--- a/docs/ecolyo-agent/Functionalities/custom_popup.md
+++ b/docs/ecolyo-agent/Functionalities/custom_popup.md
@@ -1,16 +1,21 @@
 # Custom Popup
 
-The custom popup feature sends a custom message to every instance. This message is displayed once a day. This setting can be set in the settings tab of Ecolyo agent.
+The custom popup feature sends a custom message to every instance. This popup is displayed once per day.
 
-It can be customized with :
+The modal can be customized with :
 
-- a toggle
-- a title
-- an image (from the ecogestures library, or a standard bullhorn)
-- a description (250char max)
 - a duration
+- an image (from the ecogestures library, or defaults to bullhorn)
+- a title
+- a description
 
 If a message is active, the duration is displayed in this page ex :
 
 "Temps d'activation restant :
 0 jour, 1 heure, 59 minutes, 0 seconde"
+
+:::danger Activation rule
+If [partners issues](./partners_issues.md) are enabled, the partner issues cannot be enable to avoid multiple popups.
+:::
+
+The settings have to be saved with the button "Sauvegarder".
diff --git a/docs/ecolyo-agent/Functionalities/partners_issues.md b/docs/ecolyo-agent/Functionalities/partners_issues.md
index 0d5e83e..96ecc9f 100644
--- a/docs/ecolyo-agent/Functionalities/partners_issues.md
+++ b/docs/ecolyo-agent/Functionalities/partners_issues.md
@@ -1,4 +1,12 @@
 # Partners issues
 
 This section allow the admin to activate alerts in the ecolyo app when a partners API is down.
-Admin has to activate the modal switch AND at least one fluid switch to make it work. He also has to set the switches to off position manually when the concerned APIs are back to normal.
+Admin has to activate at least one fluid switch to make it work. He also has to set the switches to off position manually when the concerned APIs are back to normal.
+
+This modal is shown to the user when visiting the fluid page.
+
+:::danger Activation rule
+If a [custom popup](./custom_popup.md) is enabled, the partner issues cannot be enable to avoid multiple popups.
+:::
+
+The modals are showed once per day per fluid.
-- 
GitLab