@bigbinary/neeto-folders-frontend 2.0.13 → 2.0.14
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/cjs/components.js
CHANGED
|
@@ -488,8 +488,10 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
488
488
|
removeButtonProps = _ref.removeButtonProps,
|
|
489
489
|
onSubmit = _ref.onSubmit,
|
|
490
490
|
onClose = _ref.onClose,
|
|
491
|
-
onRemove = _ref.onRemove
|
|
492
|
-
|
|
491
|
+
onRemove = _ref.onRemove,
|
|
492
|
+
parentId = _ref.parentId;
|
|
493
|
+
var parent = (item === null || item === void 0 ? void 0 : item.parentId) || parentId || null;
|
|
494
|
+
var _useState = React.useState(parent),
|
|
493
495
|
_useState2 = _slicedToArray(_useState, 2),
|
|
494
496
|
selection = _useState2[0],
|
|
495
497
|
setSelection = _useState2[1];
|
|
@@ -581,7 +583,7 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
581
583
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
582
584
|
className: "flex flex-1 space-x-2",
|
|
583
585
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$9(_objectSpread$9({
|
|
584
|
-
disabled: selection ===
|
|
586
|
+
disabled: selection === parent,
|
|
585
587
|
label: t("common.save"),
|
|
586
588
|
style: "primary",
|
|
587
589
|
onClick: function onClick() {
|