@trops/dash-core 0.1.119 → 0.1.120

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/dist/index.esm.js CHANGED
@@ -4032,25 +4032,25 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
4032
4032
  return _regeneratorRuntime.wrap(function (_context) {
4033
4033
  while (1) switch (_context.prev = _context.next) {
4034
4034
  case 0:
4035
- handleClose();
4036
- _context.prev = 1;
4037
- _context.next = 2;
4035
+ _context.prev = 0;
4036
+ _context.next = 1;
4038
4037
  return window.mainApi.dashboardConfig.importDashboardConfig(appId);
4039
- case 2:
4038
+ case 1:
4040
4039
  result = _context.sent;
4041
4040
  if (result && !result.canceled && result.success) {
4042
4041
  onReloadWorkspaces && onReloadWorkspaces();
4042
+ handleClose();
4043
4043
  }
4044
- _context.next = 4;
4044
+ _context.next = 3;
4045
4045
  break;
4046
+ case 2:
4047
+ _context.prev = 2;
4048
+ _context["catch"](0);
4046
4049
  case 3:
4047
- _context.prev = 3;
4048
- _context["catch"](1);
4049
- case 4:
4050
4050
  case "end":
4051
4051
  return _context.stop();
4052
4052
  }
4053
- }, _callee, null, [[1, 3]]);
4053
+ }, _callee, null, [[0, 2]]);
4054
4054
  }));
4055
4055
  return _handleImportFromFile.apply(this, arguments);
4056
4056
  }
@@ -4376,9 +4376,23 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
4376
4376
  });
4377
4377
  }
4378
4378
 
4379
- // Registry screen: no footer (DiscoverDashboardsDetail has its own back button)
4379
+ // Registry screen: Cancel button only (DiscoverDashboardsDetail has its own inline back button)
4380
4380
  if (creationMethod === "registry") {
4381
- return null;
4381
+ return /*#__PURE__*/jsx(Modal.Footer, {
4382
+ children: /*#__PURE__*/jsx("div", {
4383
+ className: "flex flex-row space-x-2",
4384
+ children: /*#__PURE__*/jsx(Button, {
4385
+ onClick: handleClose,
4386
+ title: "Cancel",
4387
+ textSize: "text-base xl:text-lg",
4388
+ padding: "py-2 px-4",
4389
+ backgroundColor: "bg-gray-700",
4390
+ textColor: "text-gray-300",
4391
+ hoverTextColor: "hover:text-gray-100",
4392
+ hoverBackgroundColor: "hover:bg-gray-600"
4393
+ })
4394
+ })
4395
+ });
4382
4396
  }
4383
4397
 
4384
4398
  // Template wizard footer