From ff8f7102de81bffa57447ca4f71d05be44f02739 Mon Sep 17 00:00:00 2001 From: SamraHanifCareem Date: Mon, 14 Apr 2025 17:00:41 -0400 Subject: [PATCH 1/5] feat: Disable creation and edit alerts --- .../ApplicationArea/ApplicationLayout/DesktopNavbar.jsx | 4 ++-- client/app/pages/alert/Alert.jsx | 4 ++-- client/app/pages/alerts/AlertsList.jsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx index a1550f60..7913bd38 100644 --- a/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx +++ b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx @@ -56,7 +56,7 @@ function useNavbarActiveState() { currentRoute.id ), dataSources: includes(["DataSources.List"], currentRoute.id), - alerts: includes(["Alerts.List", "Alerts.New", "Alerts.View", "Alerts.Edit"], currentRoute.id), + alerts: includes(["Alerts.List", "Alerts.New", "Alerts.View"], currentRoute.id), }), [currentRoute.id] ); @@ -69,7 +69,7 @@ export default function DesktopNavbar() { const canCreateQuery = currentUser.hasPermission("create_query"); const canCreateDashboard = currentUser.hasPermission("create_dashboard"); - const canCreateAlert = currentUser.hasPermission("list_alerts"); + const canCreateAlert = currentUser.hasPermission("create_alerts"); return (