@digital-ai/dot-components 4.17.1 → 4.17.3

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.
Files changed (2) hide show
  1. package/index.esm.js +8 -7
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -10489,11 +10489,11 @@ const DotMetadataApiProvider = ({
10489
10489
  if (dashboardToDelete.in_progress_changes || dashboardToDelete.parent_id) {
10490
10490
  // Use the parent ID if it exists (in-progress dashboard) or the current ID (published dashboard)
10491
10491
  const dashboardId = dashboardToDelete.parent_id ? dashboardToDelete.parent_id : dashboardToDelete.id;
10492
- deletePromise = cancelablePromise(DashboardsService.deleteInProgressDashboard(dashboardId, accountOverrideId, false).then(() => {
10493
- return DashboardsService.deleteDashboard(dashboardId, accountOverrideId);
10492
+ deletePromise = cancelablePromise(DashboardsService.deleteInProgressDashboard(dashboardId, accountId, false).then(() => {
10493
+ return DashboardsService.deleteDashboard(dashboardId, accountId);
10494
10494
  }));
10495
10495
  } else {
10496
- deletePromise = cancelablePromise(DashboardsService.deleteDashboard(dashboardToDelete.id, accountOverrideId));
10496
+ deletePromise = cancelablePromise(DashboardsService.deleteDashboard(dashboardToDelete.id, accountId));
10497
10497
  }
10498
10498
  return deletePromise.then(() => {
10499
10499
  setDashboardsError(null);
@@ -12499,7 +12499,7 @@ function DotDashboardOptionsMenu({
12499
12499
  type: "text",
12500
12500
  startIcon: jsx(DotIcon, {
12501
12501
  className: isEdit ? 'disabled-menu-item' : '',
12502
- iconId: "edit"
12502
+ iconId: "mass-edit"
12503
12503
  }),
12504
12504
  children: "Edit properties"
12505
12505
  });
@@ -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: dashboard.name
12809
- }), " and any in-progress edits. Some data may be lost."]
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "4.17.1",
3
+ "version": "4.17.3",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [