@bigbinary/neeto-folders-frontend 2.0.13 → 2.0.15
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/app/javascript/src/translations/de.json +43 -0
- package/app/javascript/src/translations/es.json +43 -0
- package/app/javascript/src/translations/fr.json +43 -0
- package/dist/cjs/components.js +5 -3
- package/dist/cjs/components.js.map +1 -1
- package/dist/components.js +5 -3
- package/dist/components.js.map +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -486,8 +486,10 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
486
486
|
removeButtonProps = _ref.removeButtonProps,
|
|
487
487
|
onSubmit = _ref.onSubmit,
|
|
488
488
|
onClose = _ref.onClose,
|
|
489
|
-
onRemove = _ref.onRemove
|
|
490
|
-
|
|
489
|
+
onRemove = _ref.onRemove,
|
|
490
|
+
parentId = _ref.parentId;
|
|
491
|
+
var parent = (item === null || item === void 0 ? void 0 : item.parentId) || parentId || null;
|
|
492
|
+
var _useState = useState(parent),
|
|
491
493
|
_useState2 = _slicedToArray(_useState, 2),
|
|
492
494
|
selection = _useState2[0],
|
|
493
495
|
setSelection = _useState2[1];
|
|
@@ -579,7 +581,7 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
579
581
|
children: [/*#__PURE__*/jsxs("div", {
|
|
580
582
|
className: "flex flex-1 space-x-2",
|
|
581
583
|
children: [/*#__PURE__*/jsx(Button, _objectSpread$9(_objectSpread$9({
|
|
582
|
-
disabled: selection ===
|
|
584
|
+
disabled: selection === parent,
|
|
583
585
|
label: t("common.save"),
|
|
584
586
|
style: "primary",
|
|
585
587
|
onClick: function onClick() {
|