add button to duplicate dashcard (#38186)
Part of https://github.com/metabase/metabase/issues/38208 ### Description Adds another button to the dash card action panel that duplicates that dashcard. ### How to verify Describe the steps to verify that the changes are working as expected. 1. Open a dashboard that you can edit 2. Mouseover a dashcard 3. Click the duplicate icon ### Demo https://www.loom.com/share/d73aad469074440992618ee179518d39 ### Checklist ~~- [ ] Tests have been added/updated to cover changes in this PR~~ e2e tests are added further down the stack
Showing
- frontend/src/metabase-types/api/dashboard.ts 1 addition, 1 deletionfrontend/src/metabase-types/api/dashboard.ts
- frontend/src/metabase/dashboard/actions/cards.js 1 addition, 1 deletionfrontend/src/metabase/dashboard/actions/cards.js
- frontend/src/metabase/dashboard/components/DashCard/DashCardActionsPanel/DashCardActionsPanel.tsx 17 additions, 2 deletions...ts/DashCard/DashCardActionsPanel/DashCardActionsPanel.tsx
- frontend/src/metabase/dashboard/components/DashCard/DashCardActionsPanel/use-duplicate-dashcard.ts 80 additions, 0 deletions...s/DashCard/DashCardActionsPanel/use-duplicate-dashcard.ts
Please register or sign in to comment