From f6a6e0b991a7b047566fa30d978227e561f1aae6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6?= Date: Wed, 16 Aug 2023 11:05:02 +0200 Subject: [PATCH] fix(files): sidebar favorite event sync MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/src/services/FileInfo.js | 29 ++--------------------------- apps/files/src/views/Sidebar.vue | 25 ++++++++++++++++++++----- 2 files changed, 22 insertions(+), 32 deletions(-) diff --git a/apps/files/src/services/FileInfo.js b/apps/files/src/services/FileInfo.js index c09af45f495..0b3b0040c26 100644 --- a/apps/files/src/services/FileInfo.js +++ b/apps/files/src/services/FileInfo.js @@ -21,6 +21,7 @@ */ import axios from '@nextcloud/axios' +import { davGetDefaultPropfind } from '@nextcloud/files' /** * @param {any} url - @@ -29,33 +30,7 @@ export default async function(url) { const response = await axios({ method: 'PROPFIND', url, - data: ` - - - - - - - - - - - - - - - - - - - - - - - `, + data: davGetDefaultPropfind(), }) // TODO: create new parser or use cdav-lib when available diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index b17aa93e63e..a2da72ce792 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -88,20 +88,22 @@