Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: context menu on custom reports page #3776

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
chore: pr feedback
  • Loading branch information
UnderKoen committed Nov 26, 2024
commit ec5e83fde176957b285d0d3e81c1afc81ffa69a3
4 changes: 2 additions & 2 deletions packages/desktop-client/src/components/reports/ReportCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ function Layout({ children, isEditing, menuItems, onMenuSelect }: LayoutProps) {
const [menuOpen, setMenuOpen] = useState<null | 'context' | 'button'>(null);
const [crossOffset, setCrossOffset] = useState(0);
const [offset, setOffset] = useState(0);
const reportBudgetEnabled = useFeatureFlag('reportBudget');
const dashboardsEnabled = useFeatureFlag('dashboards');
const contextMenusEnabled =
useFeatureFlag('contextMenus') && reportBudgetEnabled;
useFeatureFlag('contextMenus') && dashboardsEnabled;

const isContextMenu = menuOpen === 'context';

Expand Down
2 changes: 1 addition & 1 deletion upcoming-release-notes/3776.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ category: Enhancements
authors: [UnderKoen]
---

Add context menu's to custom reports dashboard
Add context menus to custom reports dashboard