@digital-ai/dot-components 4.17.1 → 4.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +4 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -12802,11 +12802,12 @@ function FullscreenButton({
|
|
|
12802
12802
|
function getDashboardDeleteMessage(dashboard) {
|
|
12803
12803
|
// Use a custom message to show if there are in-progress edits to warn the user that their data will be lost.
|
|
12804
12804
|
if (dashboard.in_progress_changes || dashboard.parent_id) {
|
|
12805
|
+
const dashboardName = dashboard.in_progress_changes ? dashboard.in_progress_changes.name : dashboard.name;
|
|
12805
12806
|
return jsxs(Fragment, {
|
|
12806
12807
|
children: [jsxs(DotTypography, {
|
|
12807
12808
|
children: ["This dashboard has in-progress edits. This will permanently DELETE", ' ', jsx("strong", {
|
|
12808
|
-
children:
|
|
12809
|
-
}), "
|
|
12809
|
+
children: dashboardName
|
|
12810
|
+
}), " along with the Published version. Some data may be lost."]
|
|
12810
12811
|
}), jsx("br", {})]
|
|
12811
12812
|
});
|
|
12812
12813
|
}
|
|
@@ -12952,7 +12953,7 @@ function DotDashboardActions({
|
|
|
12952
12953
|
}), dashboardToDelete && jsx(DotImpactDialog, {
|
|
12953
12954
|
onCancel: handleDeleteClose,
|
|
12954
12955
|
onSubmit: handleDeleteSubmit,
|
|
12955
|
-
record: dashboardToDelete.name,
|
|
12956
|
+
record: dashboardToDelete.in_progress_changes ? dashboardToDelete.in_progress_changes.name : dashboardToDelete.name,
|
|
12956
12957
|
message: getDashboardDeleteMessage(dashboardToDelete),
|
|
12957
12958
|
impact: dashboardToDelete.lifecycle_state === DashboardView.lifecycle_state.PUBLISHED || dashboardToDelete.parent_id ? 'high' : 'medium',
|
|
12958
12959
|
open: true
|