From 91280626a4b86b3acd790021da46a11116b57f58 Mon Sep 17 00:00:00 2001 From: Sagar Rajput Date: Thu, 13 Jun 2024 16:19:54 +0530 Subject: [PATCH] feat: added admin permission required message in tooltip --- .../src/container/AllAlertChannels/index.tsx | 18 +++++++++--- .../container/FormAlertRules/BasicInfo.tsx | 28 +++++++++++++------ 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/frontend/src/container/AllAlertChannels/index.tsx b/frontend/src/container/AllAlertChannels/index.tsx index 8038f17778..5f34264a60 100644 --- a/frontend/src/container/AllAlertChannels/index.tsx +++ b/frontend/src/container/AllAlertChannels/index.tsx @@ -1,5 +1,5 @@ import { PlusOutlined } from '@ant-design/icons'; -import { Typography } from 'antd'; +import { Tooltip, Typography } from 'antd'; import getAll from 'api/channels/getAll'; import Spinner from 'components/Spinner'; import TextToolTip from 'components/TextToolTip'; @@ -52,11 +52,21 @@ function AlertChannels(): JSX.Element { url="https://signoz.io/docs/userguide/alerts-management/#setting-notification-channel" /> - {addNewChannelPermission && ( - - )} + diff --git a/frontend/src/container/FormAlertRules/BasicInfo.tsx b/frontend/src/container/FormAlertRules/BasicInfo.tsx index d45f2fc7d3..5fae4a713d 100644 --- a/frontend/src/container/FormAlertRules/BasicInfo.tsx +++ b/frontend/src/container/FormAlertRules/BasicInfo.tsx @@ -162,7 +162,7 @@ function BasicInfo({ )} - {noChannels && addNewChannelPermission && ( - + + )}