RestoreDashboards: Correct tracking data (#94855)

* refactor: change output for restore_enabled

* refactor: change output for restore_enabled

* refactor
This commit is contained in:
Laura Benz 2024-10-17 17:11:17 +02:00 committed by GitHub
parent f248a55576
commit b2036ffcbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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),
});
}

View File

@ -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 {

View File

@ -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) {

View File

@ -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: {