From 6165f30a2f7fa298808ab8f867cc1f8287f1bc9d Mon Sep 17 00:00:00 2001
From: Carina Antunes <carina.oliveira.antunes@cern.ch>
Date: Fri, 21 Jun 2024 12:19:49 +0200
Subject: [PATCH] Fix archive link

---
 .../NotificationsList/NotificationsList.js    | 20 ++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/notifications/components/NotificationsList/NotificationsList.js b/src/notifications/components/NotificationsList/NotificationsList.js
index 64b7b81e..53e4bec5 100644
--- a/src/notifications/components/NotificationsList/NotificationsList.js
+++ b/src/notifications/components/NotificationsList/NotificationsList.js
@@ -52,7 +52,25 @@ const NotificationsList = props => {
   }, [notification]);
 
   if (notifications.length === 0) {
-    return <p>The are no notifications in this channel</p>;
+    return (
+      <Grid padded>
+      <Grid.Row centered>
+        <p>The are no notifications in this channel</p>;
+      </Grid.Row>
+      {archive && (
+          <Grid.Row centered>
+            <Icon name="archive" color="blue" />
+            <a
+              href={`${process.env.REACT_APP_ARCHIVE_URL}/data/${channelId}`}
+              target="_blank"
+              rel="noopener noreferrer"
+            >
+              Notifications's Archive
+            </a>
+          </Grid.Row>
+        )}
+      </Grid>
+    )
   }
 
   return (
-- 
GitLab