diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2023-07-28 14:52:30 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-08-02 09:57:27 +0200 |
commit | 87b1719c88240d7ae230e5e6ad30c47e100701bd (patch) | |
tree | a328054f57ff87500594da226a85ed2cad106e0e /apps/files_sharing/src | |
parent | 6ec35e3799974afdfa04fe43585f613534465610 (diff) | |
download | nextcloud-server-87b1719c88240d7ae230e5e6ad30c47e100701bd.tar.gz nextcloud-server-87b1719c88240d7ae230e5e6ad30c47e100701bd.zip |
feat(files): migrate recent view
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/services/SharingService.spec.ts | 1 | ||||
-rw-r--r-- | apps/files_sharing/src/services/SharingService.ts | 2 | ||||
-rw-r--r-- | apps/files_sharing/src/views/shares.ts | 4 |
3 files changed, 2 insertions, 5 deletions
diff --git a/apps/files_sharing/src/services/SharingService.spec.ts b/apps/files_sharing/src/services/SharingService.spec.ts index a1de907721a..54e2355b082 100644 --- a/apps/files_sharing/src/services/SharingService.spec.ts +++ b/apps/files_sharing/src/services/SharingService.spec.ts @@ -313,7 +313,6 @@ describe('SharingService share to Node mapping', () => { expect(file.root).toBe('/files/test') expect(file.attributes).toBeInstanceOf(Object) expect(file.attributes['has-preview']).toBe(true) - expect(file.attributes.previewUrl).toBe('/index.php/core/preview?fileId=530936&x=32&y=32&forceIcon=0') expect(file.attributes.favorite).toBe(0) }) diff --git a/apps/files_sharing/src/services/SharingService.ts b/apps/files_sharing/src/services/SharingService.ts index dc167475094..5f288ce7fc5 100644 --- a/apps/files_sharing/src/services/SharingService.ts +++ b/apps/files_sharing/src/services/SharingService.ts @@ -53,7 +53,6 @@ const ocsEntryToNode = function(ocsEntry: any): Folder | File | null { const Node = isFolder ? Folder : File const fileid = ocsEntry.file_source - const previewUrl = hasPreview ? generateUrl('/core/preview?fileId={fileid}&x=32&y=32&forceIcon=0', { fileid }) : undefined // Generate path and strip double slashes const path = ocsEntry?.path || ocsEntry.file_target @@ -76,7 +75,6 @@ const ocsEntryToNode = function(ocsEntry: any): Folder | File | null { root: rootPath, attributes: { ...ocsEntry, - previewUrl, 'has-preview': hasPreview, favorite: ocsEntry?.tags?.includes(window.OC.TAG_FAVORITE) ? 1 : 0, }, diff --git a/apps/files_sharing/src/views/shares.ts b/apps/files_sharing/src/views/shares.ts index 08e55d2678a..ff37983813e 100644 --- a/apps/files_sharing/src/views/shares.ts +++ b/apps/files_sharing/src/views/shares.ts @@ -28,7 +28,7 @@ import AccountGroupSvg from '@mdi/svg/svg/account-group.svg?raw' import AccountSvg from '@mdi/svg/svg/account.svg?raw' import DeleteSvg from '@mdi/svg/svg/delete.svg?raw' import LinkSvg from '@mdi/svg/svg/link.svg?raw' -import AccouontPlusSvg from '@mdi/svg/svg/account-plus.svg?raw' +import AccountPlusSvg from '@mdi/svg/svg/account-plus.svg?raw' import { getContents } from '../services/SharingService' @@ -49,7 +49,7 @@ export default () => { emptyTitle: t('files_sharing', 'No shares'), emptyCaption: t('files_sharing', 'Files and folders you shared or have been shared with you will show up here'), - icon: AccouontPlusSvg, + icon: AccountPlusSvg, order: 20, columns: [], |