diff --git a/changelog/unreleased/bugfix-external-apps-by-shares b/changelog/unreleased/bugfix-external-apps-by-shares new file mode 100644 index 00000000000..d357a01c92c --- /dev/null +++ b/changelog/unreleased/bugfix-external-apps-by-shares @@ -0,0 +1,8 @@ +Bugfix: External apps by shares + +Opening shares in "Shared with me" section was broken. We have added property `mimeType` by the build of a shared resource, so that the external apps can be found for it. + +We fixed passing the fileId property for the context actions. + +https://github.com/owncloud/web/pull/5907 +https://github.com/owncloud/web/issues/5906 diff --git a/packages/web-app-files/src/components/FilesList/ContextActions.vue b/packages/web-app-files/src/components/FilesList/ContextActions.vue index e8702ad4762..038d87cc144 100644 --- a/packages/web-app-files/src/components/FilesList/ContextActions.vue +++ b/packages/web-app-files/src/components/FilesList/ContextActions.vue @@ -9,7 +9,7 @@ {{ 'Open in ' + app.name }} diff --git a/packages/web-app-files/src/helpers/resources.js b/packages/web-app-files/src/helpers/resources.js index 514d5149a72..0c4eb64e9c1 100644 --- a/packages/web-app-files/src/helpers/resources.js +++ b/packages/web-app-files/src/helpers/resources.js @@ -174,6 +174,7 @@ export function buildSharedResource(share, incomingShares = false, allowSharePer id: share.id, fileId: share.item_source, type: share.item_type, + mimeType: share.state === 0 ? share.mimetype : '', isFolder, sdate: share.stime * 1000, indicators: [] diff --git a/packages/web-app-files/tests/unit/components/FilesList/ContextActions.spec.js b/packages/web-app-files/tests/unit/components/FilesList/ContextActions.spec.js index 320dbfa6dd9..f61e994692e 100644 --- a/packages/web-app-files/tests/unit/components/FilesList/ContextActions.spec.js +++ b/packages/web-app-files/tests/unit/components/FilesList/ContextActions.spec.js @@ -249,6 +249,7 @@ function getWrapper(route, { filename, extension, type = '', mimeType }, availab propsData: { item: { id: 'a93f8adf==', + fileId: 'a93f8adf==', name: filename, path: type === 'file' ? `/${filename}.${extension}` : `/${filename}`, mimeType,