From 3c3050c76f86c7a8cc2f217f9305cb1051e0eca0 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Fri, 24 Mar 2023 09:41:40 +0100 Subject: feat(files): implement sorting per view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/js/filelist.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/files/js/filelist.js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 2d93ced7100..e3052ea9fe8 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2181,8 +2181,10 @@ if (persist && OC.getCurrentUser().uid) { $.post(OC.generateUrl('/apps/files/api/v1/sorting'), { - mode: sort, - direction: direction + // Compatibility with new files-to-vue API + mode: sort === 'name' ? 'basename' : sort, + direction: direction, + view: 'files' }); } }, -- cgit v1.2.3