Skip to content

Commit

Permalink
feat: added create alerts option for panel in locked dashboard (#7071)
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 authored Feb 11, 2025
1 parent 37558fa commit 1fb3953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/container/GridCardLayout/GridCardLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1fb3953

Please # to comment.