@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 +25 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4050,25 +4050,25 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
4050
4050
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
4051
4051
|
while (1) switch (_context.prev = _context.next) {
|
|
4052
4052
|
case 0:
|
|
4053
|
-
|
|
4054
|
-
_context.
|
|
4055
|
-
_context.next = 2;
|
|
4053
|
+
_context.prev = 0;
|
|
4054
|
+
_context.next = 1;
|
|
4056
4055
|
return window.mainApi.dashboardConfig.importDashboardConfig(appId);
|
|
4057
|
-
case
|
|
4056
|
+
case 1:
|
|
4058
4057
|
result = _context.sent;
|
|
4059
4058
|
if (result && !result.canceled && result.success) {
|
|
4060
4059
|
onReloadWorkspaces && onReloadWorkspaces();
|
|
4060
|
+
handleClose();
|
|
4061
4061
|
}
|
|
4062
|
-
_context.next =
|
|
4062
|
+
_context.next = 3;
|
|
4063
4063
|
break;
|
|
4064
|
+
case 2:
|
|
4065
|
+
_context.prev = 2;
|
|
4066
|
+
_context["catch"](0);
|
|
4064
4067
|
case 3:
|
|
4065
|
-
_context.prev = 3;
|
|
4066
|
-
_context["catch"](1);
|
|
4067
|
-
case 4:
|
|
4068
4068
|
case "end":
|
|
4069
4069
|
return _context.stop();
|
|
4070
4070
|
}
|
|
4071
|
-
}, _callee, null, [[
|
|
4071
|
+
}, _callee, null, [[0, 2]]);
|
|
4072
4072
|
}));
|
|
4073
4073
|
return _handleImportFromFile.apply(this, arguments);
|
|
4074
4074
|
}
|
|
@@ -4394,9 +4394,23 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
4394
4394
|
});
|
|
4395
4395
|
}
|
|
4396
4396
|
|
|
4397
|
-
// Registry screen:
|
|
4397
|
+
// Registry screen: Cancel button only (DiscoverDashboardsDetail has its own inline back button)
|
|
4398
4398
|
if (creationMethod === "registry") {
|
|
4399
|
-
return
|
|
4399
|
+
return /*#__PURE__*/jsxRuntime.jsx(DashReact.Modal.Footer, {
|
|
4400
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
4401
|
+
className: "flex flex-row space-x-2",
|
|
4402
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
4403
|
+
onClick: handleClose,
|
|
4404
|
+
title: "Cancel",
|
|
4405
|
+
textSize: "text-base xl:text-lg",
|
|
4406
|
+
padding: "py-2 px-4",
|
|
4407
|
+
backgroundColor: "bg-gray-700",
|
|
4408
|
+
textColor: "text-gray-300",
|
|
4409
|
+
hoverTextColor: "hover:text-gray-100",
|
|
4410
|
+
hoverBackgroundColor: "hover:bg-gray-600"
|
|
4411
|
+
})
|
|
4412
|
+
})
|
|
4413
|
+
});
|
|
4400
4414
|
}
|
|
4401
4415
|
|
|
4402
4416
|
// Template wizard footer
|