cozy-ui 128.1.0 → 128.2.0
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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [128.2.0](https://github.com/cozy/cozy-ui/compare/v128.1.0...v128.2.0) (2025-09-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Adjust view in drive to adapt shared drive :sparkles: ([dcf0204](https://github.com/cozy/cozy-ui/commit/dcf0204))
|
|
7
|
+
|
|
1
8
|
# [128.1.0](https://github.com/cozy/cozy-ui/compare/v128.0.0...v128.1.0) (2025-09-02)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -38,12 +38,13 @@ export const viewInDrive = () => {
|
|
|
38
38
|
Component: makeComponent(label, icon),
|
|
39
39
|
action: (docs, { client }) => {
|
|
40
40
|
const dirId = docs[0].dir_id
|
|
41
|
+
const driveId = docs[0].driveId
|
|
41
42
|
const webLink = generateWebLink({
|
|
42
43
|
slug: 'drive',
|
|
43
44
|
cozyUrl: client.getStackClient().uri,
|
|
44
45
|
subDomainType: client.getInstanceOptions().subdomain,
|
|
45
46
|
pathname: '/',
|
|
46
|
-
hash: `folder/${dirId}`
|
|
47
|
+
hash: driveId ? `shareddrive/${driveId}/${dirId}` : `folder/${dirId}`
|
|
47
48
|
})
|
|
48
49
|
|
|
49
50
|
window.open(webLink, '_blank')
|
|
@@ -36,12 +36,13 @@ export var viewInDrive = function viewInDrive() {
|
|
|
36
36
|
action: function action(docs, _ref) {
|
|
37
37
|
var client = _ref.client;
|
|
38
38
|
var dirId = docs[0].dir_id;
|
|
39
|
+
var driveId = docs[0].driveId;
|
|
39
40
|
var webLink = generateWebLink({
|
|
40
41
|
slug: 'drive',
|
|
41
42
|
cozyUrl: client.getStackClient().uri,
|
|
42
43
|
subDomainType: client.getInstanceOptions().subdomain,
|
|
43
44
|
pathname: '/',
|
|
44
|
-
hash: "folder/".concat(dirId)
|
|
45
|
+
hash: driveId ? "shareddrive/".concat(driveId, "/").concat(dirId) : "folder/".concat(dirId)
|
|
45
46
|
});
|
|
46
47
|
window.open(webLink, '_blank');
|
|
47
48
|
}
|