[DASHBOARDS] Allow dashboards to be restored (#17042)
This PR introduces a few changes: - Add three actions: see deleted dashboards, destroy dashboard and restore dashboard - Remove the soft delete and restore on all the page layout entities - Cascade the destruction of a dashboard to a page layout Video QA: https://github.com/user-attachments/assets/ab993b11-dd9c-4e88-880c-92691a521cc2
This commit is contained in:
@@ -55,10 +55,10 @@ export const createGetDashboardTool = (
|
||||
};
|
||||
}
|
||||
|
||||
const pageLayout = await deps.pageLayoutService.findByIdOrThrow(
|
||||
dashboard.pageLayoutId,
|
||||
context.workspaceId,
|
||||
);
|
||||
const pageLayout = await deps.pageLayoutService.findByIdOrThrow({
|
||||
id: dashboard.pageLayoutId,
|
||||
workspaceId: context.workspaceId,
|
||||
});
|
||||
|
||||
const tabs =
|
||||
pageLayout.tabs?.map((tab) => ({
|
||||
|
||||
Reference in New Issue
Block a user