mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
chore(files_sharing): Do not use files source files but directly the library
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
a05e5428c5
commit
f06fdb04a3
1 changed files with 2 additions and 3 deletions
|
|
@ -3,12 +3,11 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
import type { FileStat, ResponseDataDetailed } from 'webdav'
|
||||
import { Folder, Permission, View, davGetDefaultPropfind, davRemoteURL, davRootPath, getNavigation } from '@nextcloud/files'
|
||||
import { Folder, Permission, View, davGetDefaultPropfind, davRemoteURL, davResultToNode, davRootPath, getNavigation } from '@nextcloud/files'
|
||||
import { translate as t } from '@nextcloud/l10n'
|
||||
import { CancelablePromise } from 'cancelable-promise'
|
||||
import LinkSvg from '@mdi/svg/svg/link.svg?raw'
|
||||
|
||||
import { resultToNode } from '../../../files/src/services/Files'
|
||||
import { client } from '../../../files/src/services/WebdavClient'
|
||||
import logger from '../services/logger'
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ export default () => {
|
|||
|
||||
resolve({
|
||||
// We only have one file as the content
|
||||
contents: [resultToNode(node.data)],
|
||||
contents: [davResultToNode(node.data)],
|
||||
// Fake a readonly folder as root
|
||||
folder: new Folder({
|
||||
id: 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue