From 1fb3953614cb5aa66bc4fd5e88ac3033640f99af Mon Sep 17 00:00:00 2001 From: SagarRajput-7 <162284829+SagarRajput-7@users.noreply.github.com> Date: Tue, 11 Feb 2025 16:32:25 +0530 Subject: [PATCH] feat: added create alerts option for panel in locked dashboard (#7071) --- frontend/src/container/GridCardLayout/GridCardLayout.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/GridCardLayout/GridCardLayout.tsx b/frontend/src/container/GridCardLayout/GridCardLayout.tsx index fa125091e6..c61fbcc7bc 100644 --- a/frontend/src/container/GridCardLayout/GridCardLayout.tsx +++ b/frontend/src/container/GridCardLayout/GridCardLayout.tsx @@ -45,6 +45,7 @@ import DashboardEmptyState from './DashboardEmptyState/DashboardEmptyState'; import GridCard from './GridCard'; import { Card, CardContainer, ReactGridLayout } from './styles'; import { removeUndefinedValuesFromLayout } from './utils'; +import { MenuItemKeys } from './WidgetHeader/contants'; import { WidgetRowHeader } from './WidgetRow'; interface GraphLayoutProps { @@ -190,7 +191,7 @@ function GraphLayout(props: GraphLayoutProps): JSX.Element { const widgetActions = !isDashboardLocked ? [...ViewMenuAction, ...EditMenuAction] - : [...ViewMenuAction]; + : [...ViewMenuAction, MenuItemKeys.CreateAlerts]; const handleLayoutChange = (layout: Layout[]): void => { const filterLayout = removeUndefinedValuesFromLayout(layout);