mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
RestoreDashboards: Correct tracking data (#94855)
* refactor: change output for restore_enabled * refactor: change output for restore_enabled * refactor
This commit is contained in:
parent
f248a55576
commit
b2036ffcbf
@ -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…
Reference in New Issue
Block a user