From 0984970cd8759ae2dcd7dfdfe41d5816bf3c2948 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Tue, 11 Apr 2023 11:24:09 +0200 Subject: feat(files): favorites MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files_trashbin/src/services/trashbin.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'apps/files_trashbin/src') diff --git a/apps/files_trashbin/src/services/trashbin.ts b/apps/files_trashbin/src/services/trashbin.ts index 9982750ba5c..ab48863317a 100644 --- a/apps/files_trashbin/src/services/trashbin.ts +++ b/apps/files_trashbin/src/services/trashbin.ts @@ -25,27 +25,19 @@ import { File, Folder, parseWebdavPermissions } from '@nextcloud/files' import { generateRemoteUrl, generateUrl } from '@nextcloud/router' import type { FileStat, ResponseDataDetailed } from 'webdav' +import { getDavNameSpaces, getDavProperties } from '../../../files/src/services/DavProperties' import type { ContentsWithRoot } from '../../../files/src/services/Navigation.ts' import client, { rootPath } from './client' const data = ` - + - - - - - - - - + ${getDavProperties()} ` @@ -73,6 +65,8 @@ const resultToNode = function(node: FileStat): File | Folder { }, } + delete nodeData.attributes.props + return node.type === 'file' ? new File(nodeData) : new Folder(nodeData) -- cgit v1.2.3