cozy-sharing 28.1.0 → 28.1.1
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/CHANGELOG.md +6 -0
- package/dist/components/SharedDrive/DumbSharedDriveModal.js +2 -5
- package/dist/components/SharedDrive/SharedDriveEditModal.js +1 -2
- package/package.json +2 -2
- package/src/components/SharedDrive/DumbSharedDriveModal.jsx +2 -5
- package/src/components/SharedDrive/SharedDriveEditModal.jsx +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [28.1.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.1.0...cozy-sharing@28.1.1) (2025-12-12)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Do not disable save button when name is unchanged ([4fcff36](https://github.com/cozy/cozy-libs/commit/4fcff366987fea025a9cf2df447e265221406487))
|
|
11
|
+
|
|
6
12
|
# [28.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@28.0.3...cozy-sharing@28.1.0) (2025-12-11)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -20,8 +20,7 @@ export var DumbSharedDriveModal = withLocales(function (_ref) {
|
|
|
20
20
|
onCreate = _ref.onCreate,
|
|
21
21
|
onClose = _ref.onClose,
|
|
22
22
|
onShare = _ref.onShare,
|
|
23
|
-
onRename = _ref.onRename
|
|
24
|
-
originalSharedDriveName = _ref.originalSharedDriveName;
|
|
23
|
+
onRename = _ref.onRename;
|
|
25
24
|
|
|
26
25
|
var _useI18n = useI18n(),
|
|
27
26
|
t = _useI18n.t;
|
|
@@ -79,7 +78,6 @@ export var DumbSharedDriveModal = withLocales(function (_ref) {
|
|
|
79
78
|
label: t('SharedDrive.sharedDriveModal.create'),
|
|
80
79
|
onClick: onCreate
|
|
81
80
|
})), onRename && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
82
|
-
disabled: originalSharedDriveName === sharedDriveName,
|
|
83
81
|
variant: "primary",
|
|
84
82
|
label: t('SharedDrive.sharedDriveModal.save'),
|
|
85
83
|
onClick: function onClick() {
|
|
@@ -100,6 +98,5 @@ DumbSharedDriveModal.propTypes = {
|
|
|
100
98
|
onCreate: PropTypes.func.isRequired,
|
|
101
99
|
onClose: PropTypes.func.isRequired,
|
|
102
100
|
onShare: PropTypes.func.isRequired,
|
|
103
|
-
onRename: PropTypes.func.isRequired
|
|
104
|
-
originalSharedDriveName: PropTypes.string.isRequired
|
|
101
|
+
onRename: PropTypes.func.isRequired
|
|
105
102
|
};
|
|
@@ -91,8 +91,7 @@ export var SharedDriveEditModal = withLocales(function (_ref) {
|
|
|
91
91
|
onShare: onShare,
|
|
92
92
|
sharedDriveName: name,
|
|
93
93
|
handleSharedDriveNameChange: handleNameChange,
|
|
94
|
-
onRename: onRename
|
|
95
|
-
originalSharedDriveName: sharing === null || sharing === void 0 ? void 0 : sharing.description
|
|
94
|
+
onRename: onRename
|
|
96
95
|
});
|
|
97
96
|
});
|
|
98
97
|
SharedDriveEditModal.propTypes = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "28.1.
|
|
3
|
+
"version": "28.1.1",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"sideEffects": [
|
|
84
84
|
"*.css"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "47ff1f9d71e58f22aafb44c29dc68dd9658f5206"
|
|
87
87
|
}
|
|
@@ -24,8 +24,7 @@ export const DumbSharedDriveModal = withLocales(
|
|
|
24
24
|
onCreate,
|
|
25
25
|
onClose,
|
|
26
26
|
onShare,
|
|
27
|
-
onRename
|
|
28
|
-
originalSharedDriveName
|
|
27
|
+
onRename
|
|
29
28
|
}) => {
|
|
30
29
|
const { t } = useI18n()
|
|
31
30
|
|
|
@@ -97,7 +96,6 @@ export const DumbSharedDriveModal = withLocales(
|
|
|
97
96
|
{onRename && (
|
|
98
97
|
<>
|
|
99
98
|
<Button
|
|
100
|
-
disabled={originalSharedDriveName === sharedDriveName}
|
|
101
99
|
variant="primary"
|
|
102
100
|
label={t('SharedDrive.sharedDriveModal.save')}
|
|
103
101
|
onClick={() => onRename(sharedDriveName)}
|
|
@@ -123,6 +121,5 @@ DumbSharedDriveModal.propTypes = {
|
|
|
123
121
|
onCreate: PropTypes.func.isRequired,
|
|
124
122
|
onClose: PropTypes.func.isRequired,
|
|
125
123
|
onShare: PropTypes.func.isRequired,
|
|
126
|
-
onRename: PropTypes.func.isRequired
|
|
127
|
-
originalSharedDriveName: PropTypes.string.isRequired
|
|
124
|
+
onRename: PropTypes.func.isRequired
|
|
128
125
|
}
|