RestoreDashboards: Correct tracking data (#94855)
* refactor: change output for restore_enabled * refactor: change output for restore_enabled * refactor
This commit is contained in:
@@ -115,6 +115,6 @@ function trackAction(action: keyof typeof actionMap, selectedItems: Omit<Dashboa
|
|||||||
dashboard: selectedDashboards.length,
|
dashboard: selectedDashboards.length,
|
||||||
},
|
},
|
||||||
source: 'tree_actions',
|
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,
|
folder: Object.keys(selectedItems.folder).length,
|
||||||
},
|
},
|
||||||
source: 'browse_dashboards',
|
source: 'browse_dashboards',
|
||||||
restore_enabled: config.featureToggles.dashboardRestore,
|
restore_enabled: Boolean(config.featureToggles.dashboardRestore),
|
||||||
});
|
});
|
||||||
setIsDeleting(true);
|
setIsDeleting(true);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export function DeleteDashboardButton({ dashboard }: ButtonProps) {
|
|||||||
dashboard: 1,
|
dashboard: 1,
|
||||||
},
|
},
|
||||||
source: 'dashboard_scene_settings',
|
source: 'dashboard_scene_settings',
|
||||||
restore_enabled: config.featureToggles.dashboardRestore,
|
restore_enabled: Boolean(config.featureToggles.dashboardRestore),
|
||||||
});
|
});
|
||||||
toggleModal();
|
toggleModal();
|
||||||
if (dashboard.state.uid) {
|
if (dashboard.state.uid) {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const DeleteDashboardModalUnconnected = ({ hideModal, cleanUpDashboardAndVariabl
|
|||||||
dashboard: 1,
|
dashboard: 1,
|
||||||
},
|
},
|
||||||
source: 'dashboard_settings',
|
source: 'dashboard_settings',
|
||||||
restore_enabled: config.featureToggles.dashboardRestore,
|
restore_enabled: Boolean(config.featureToggles.dashboardRestore),
|
||||||
});
|
});
|
||||||
await deleteItems({
|
await deleteItems({
|
||||||
selectedItems: {
|
selectedItems: {
|
||||||
|
|||||||
Reference in New Issue
Block a user