RestoreDashboards: Correct tracking data (#94855)

* refactor: change output for restore_enabled

* refactor: change output for restore_enabled

* refactor
pull/94899/head
Laura Benz 9 months ago committed by GitHub
parent f248a55576
commit b2036ffcbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx
  2. 2
      public/app/features/browse-dashboards/components/BrowseActions/DeleteModal.tsx
  3. 2
      public/app/features/dashboard-scene/settings/DeleteDashboardButton.tsx
  4. 2
      public/app/features/dashboard/components/DeleteDashboard/DeleteDashboardModal.tsx

@ -115,6 +115,6 @@ function trackAction(action: keyof typeof actionMap, selectedItems: Omit<Dashboa
dashboard: selectedDashboards.length,
},
source: 'tree_actions',
restore_enabled: config.featureToggles.dashboardRestore,
restore_enabled: Boolean(config.featureToggles.dashboardRestore),
});
}

@ -27,7 +27,7 @@ export const DeleteModal = ({ onConfirm, onDismiss, selectedItems, ...props }: P
folder: Object.keys(selectedItems.folder).length,
},
source: 'browse_dashboards',
restore_enabled: config.featureToggles.dashboardRestore,
restore_enabled: Boolean(config.featureToggles.dashboardRestore),
});
setIsDeleting(true);
try {

@ -33,7 +33,7 @@ export function DeleteDashboardButton({ dashboard }: ButtonProps) {
dashboard: 1,
},
source: 'dashboard_scene_settings',
restore_enabled: config.featureToggles.dashboardRestore,
restore_enabled: Boolean(config.featureToggles.dashboardRestore),
});
toggleModal();
if (dashboard.state.uid) {

@ -34,7 +34,7 @@ const DeleteDashboardModalUnconnected = ({ hideModal, cleanUpDashboardAndVariabl
dashboard: 1,
},
source: 'dashboard_settings',
restore_enabled: config.featureToggles.dashboardRestore,
restore_enabled: Boolean(config.featureToggles.dashboardRestore),
});
await deleteItems({
selectedItems: {

Loading…
Cancel
Save